Jenkinsfile: Automatically clean workspace after building pull requests
parent
b325c53316
commit
4df6d98988
|
@ -22,4 +22,10 @@ node('master') {
|
|||
sh 'rm -f data.zip'
|
||||
zip zipFile: 'data.zip', archive: true, dir: 'build/install'
|
||||
}
|
||||
|
||||
// Clean workspace after building pull requests
|
||||
// to save disk space on the Jenkins host
|
||||
if (env.BRANCH_NAME.startsWith('PR-')) {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue