From 3b99a62185c4aba3c6c7507dfbbbcf5bcbce3ba2 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 26 Nov 2016 12:54:25 +0100 Subject: [PATCH] Jenkinsfile: Automatically discard old artifacts --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 78efe9f8..31563d13 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,5 @@ +properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '30', artifactNumToKeepStr: '10']]]) + node('master') { stage 'Pull changes' checkout scm