Clean up jenkins build afterwards

This commit is contained in:
nsubiron 2018-05-08 17:01:04 +02:00
parent 951694aa91
commit 4bc0d43e75
1 changed files with 9 additions and 1 deletions

12
Jenkinsfile vendored
View File

@ -5,6 +5,10 @@ pipeline {
UE4_ROOT = '/var/lib/jenkins/UnrealEngine_4.18' UE4_ROOT = '/var/lib/jenkins/UnrealEngine_4.18'
} }
options {
buildDiscarder(logRotator(numToKeepStr: '6', artifactNumToKeepStr: '6'))
}
stages { stages {
stage('Setup') { stage('Setup') {
@ -24,11 +28,15 @@ pipeline {
sh './Package.sh --clean-intermediate' sh './Package.sh --clean-intermediate'
} }
} }
} }
post { post {
success {
always {
archiveArtifacts 'Dist/*.tar.gz' archiveArtifacts 'Dist/*.tar.gz'
} deleteDir()
}
} }
} }