[Jenkinsfile] Added deleteDir on branch 'master'

[ci skip]
This commit is contained in:
/dev/root 2017-03-03 20:40:38 +01:00
parent 8e5446e198
commit ebbc0ec8cf

6
Jenkinsfile vendored
View File

@ -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
} }