From 325f9183a2eabe52fd4fc424c0bdd751adea7bf6 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 27 Nov 2016 17:05:53 +0100 Subject: [PATCH] [Jenkins] Only keep last 30 artifacts --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d14e23e2..68c0e01a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -185,7 +185,8 @@ def iw4xExecutableBranch() { // Job properties properties([ - [$class: "GitLabConnectionProperty", gitLabConnection: "sr0"] + [$class: "GitLabConnectionProperty", gitLabConnection: "sr0"], + buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '30')) ]) gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"]) {