问题描述
如何清理Jenkins中的工作区?我正在使用AccuRev
作为版本控制工具.
How can I cleanup the workspace in Jenkins? I am using AccuRev
as version control tool.
我在詹金斯创建了freestyle
个项目.
I created freestyle
projects in Jenkins.
推荐答案
在Jenkins中有一种清理工作区的方法.您可以在构建之前或构建之后清理工作空间.
There is a way to cleanup workspace in Jenkins. You can clean up the workspace before build or after build.
首先,安装工作区清理插件.
要在构建之前清理工作区,请执行以下操作:在构建环境下,选中在构建开始之前删除工作区.
To clean up the workspace before build:Under Build Environment, check the box that says Delete workspace before build starts.
要在构建后清理工作空间,请执行以下操作:在构建后操作标题下,从添加构建后操作下拉菜单中选择完成构建后删除工作区.
To clean up the workspace after the build:Under the heading Post-build Actions select Delete workspace when build is done from the Add Post-build Actions drop down menu.
这篇关于有什么方法可以清理Jenkins工作区吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!