From 4bc0d43e75b00ba39990c4e2bb84425230d925bf Mon Sep 17 00:00:00 2001 From: nsubiron Date: Tue, 8 May 2018 17:01:04 +0200 Subject: [PATCH] Clean up jenkins build afterwards --- Jenkinsfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5d4ca6e32..e6249f736 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,10 @@ pipeline { UE4_ROOT = '/var/lib/jenkins/UnrealEngine_4.18' } + options { + buildDiscarder(logRotator(numToKeepStr: '6', artifactNumToKeepStr: '6')) + } + stages { stage('Setup') { @@ -24,11 +28,15 @@ pipeline { sh './Package.sh --clean-intermediate' } } + } post { - success { + + always { archiveArtifacts 'Dist/*.tar.gz' + deleteDir() } + } }