Jenkins build之后清理workspace
disableDeferredWipeout: true,这个选项是关闭延时删除,立即删除。stage('Clean') {steps {cleanWs(cleanWhenAborted: true,cleanWhenFailure: true,cleanWhenNotBuilt: true, ...
·
disableDeferredWipeout: true, 这个选项是关闭延时删除,立即删除。
stage('Clean') {
steps {
cleanWs(
cleanWhenAborted: true,
cleanWhenFailure: true,
cleanWhenNotBuilt: true,
cleanWhenSuccess: true,
cleanWhenUnstable: true,
cleanupMatrixParent: true,
disableDeferredWipeout: true,
deleteDirs: true
)
}
}
如果本文对您有所帮助,请帮忙点赞,谢谢!
更多推荐
已为社区贡献27条内容
所有评论(0)