From 89156253575c973524a1dcfb152470bd7888d129 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Fri, 19 Apr 2019 19:37:20 +0100 Subject: [PATCH] [Jenkinsfile] Configuration to discard old builds. --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4234247c2..08f398d83 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,6 +16,8 @@ if (env.BRANCH_NAME && env.BRANCH_NAME ==~ regexNocacheBranch) { abortPreviousRunningBuilds() +properties([buildDiscarder(logRotator(numToKeepStr: '4'))]) + def builders = [:] def buildResults = [:]