詹金斯:有没有办法清理詹金斯工作区? [英] Jenkins: Is there any way to cleanup Jenkins workspace?

查看:48
本文介绍了詹金斯:有没有办法清理詹金斯工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何清理 Jenkins 中的工作区?我使用 AccuRev 作为版本控制工具.

How can I cleanup the workspace in Jenkins? I am using AccuRev as version control tool.

我在 Jenkins 中创建了 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.

这篇关于詹金斯:有没有办法清理詹金斯工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆