Jenkinsfile: Automatically clean workspace after building pull requests

master
krzys-h 2017-05-21 20:38:11 +02:00
parent 4bb05b32f5
commit 92eb202d5d
2 changed files with 7 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -54,4 +54,10 @@ node('master') {
}
step([$class: 'XUnitBuilder', testTimeMargin: '3000', thresholdMode: 1, thresholds: [[$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '0'], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstableNewThreshold: '', unstableThreshold: '']], tools: [[$class: 'GoogleTestType', deleteOutputFiles: true, failIfNotNew: true, pattern: 'build/linux/gtestresults.xml', skipNoTestFiles: false, stopProcessingIfError: true]]])
}
// Clean workspace after building pull requests
// to save disk space on the Jenkins host
if (env.BRANCH_NAME.startsWith('PR-')) {
cleanWs()
}
}

2
data

@ -1 +1 @@
Subproject commit b325c53316b0b4ac7fe69597bff69499bee0ef6a
Subproject commit 4df6d989881d6b00944fbcbe6141f6426dc04e40