Skip to content

Commit 326eb63

Browse files
committed
[Build] Extend list of kept builds but reduce artifacts kept
Keep the metadata of more builds but reduce the number of builds for which artifacts are kept. This reduces the overall storage occupation but lengths the trend lists.
1 parent 162d3d0 commit 326eb63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pipeline {
8989
skipDefaultCheckout() // Specialiced checkout is performed below
9090
timestamps()
9191
timeout(time: 180, unit: 'MINUTES')
92-
buildDiscarder(logRotator(numToKeepStr:'5'))
92+
buildDiscarder(logRotator(numToKeepStr: 'master'.equals(env.BRANCH_NAME) ? '20' : '5', artifactNumToKeepStr: 'master'.equals(env.BRANCH_NAME) ? '3' : '1' ))
9393
disableConcurrentBuilds(abortPrevious: true)
9494
}
9595
agent {

0 commit comments

Comments
 (0)