[Jenkinsfile] Configuration to discard old builds.

This commit is contained in:
Mat Sutcliffe
2019-04-19 19:37:20 +01:00
committed by Klaus Basan
parent 7e25360d3c
commit 8915625357

2
Jenkinsfile vendored
View File

@@ -16,6 +16,8 @@ if (env.BRANCH_NAME && env.BRANCH_NAME ==~ regexNocacheBranch) {
abortPreviousRunningBuilds()
properties([buildDiscarder(logRotator(numToKeepStr: '4'))])
def builders = [:]
def buildResults = [:]