[Jenkinsfile] Added deleteDir on branch 'master'
[ci skip]
This commit is contained in:
parent
8e5446e198
commit
ebbc0ec8cf
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -193,6 +193,12 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
|
|||||||
gitlabCommitStatus("Checkout & Versioning") {
|
gitlabCommitStatus("Checkout & Versioning") {
|
||||||
node("windows") {
|
node("windows") {
|
||||||
jobWorkspace("versioning") {
|
jobWorkspace("versioning") {
|
||||||
|
if (env.BRANCH_NAME == 'master')
|
||||||
|
{
|
||||||
|
echo 'Reset build environment'
|
||||||
|
deleteDir()
|
||||||
|
}
|
||||||
|
|
||||||
retry(5) {
|
retry(5) {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user