首先需要安装Workspace Cleanup插件(默认新版本应该是安装好的)
参考官网https://github.com/jenkinsci/ws-cleanup-plugin
stages{
stage('清除空间') {
steps {
// Clean before build
cleanWs()
}
}
}
我设置的如下
打包效果如下
首先需要安装Workspace Cleanup插件(默认新版本应该是安装好的)
参考官网https://github.com/jenkinsci/ws-cleanup-plugin
stages{
stage('清除空间') {
steps {
// Clean before build
cleanWs()
}
}
}
我设置的如下
打包效果如下