From 8a7147c8a2b26ae2dcb4be73a1988632d61c106c Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Thu, 27 Dec 2018 20:45:23 +0100 Subject: [PATCH] Reducing number of kept builds on ci server --- Jenkinsfile | 1 + Jenkinsfile-itest | 3 +++ 2 files changed, 4 insertions(+) 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 { -- 2.39.5