diff --git a/Jenkinsfile b/Jenkinsfile index dd19aa772..5a1594bd5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,6 +45,7 @@ pipeline { } options { disableConcurrentBuilds() + buildDiscarder(logRotator(numToKeepStr: '15', artifactNumToKeepStr: '15')) } parameters { booleanParam(name: 'PRECLEANUP', defaultValue: false, description: 'Clears the local maven repository before build.') diff --git a/Jenkinsfile-itest b/Jenkinsfile-itest index f923f7ade..5deb9cfe4 100644 --- a/Jenkinsfile-itest +++ b/Jenkinsfile-itest @@ -35,6 +35,9 @@ pipeline { agent { label "${LABEL}" } + options { + buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) + } stages {