ci: cleanup more build artifacts

Should be cleaning artifacts for more than 1+1 build for each branch.
This commit is contained in:
Anton Iakimov 2024-02-28 15:50:47 +01:00
parent 26dd51c5da
commit 5f4d4bfc11
No known key found for this signature in database
GPG Key ID: DEA1FE58DD8BF7FA
9 changed files with 21 additions and 4 deletions

View File

@ -15,7 +15,7 @@ pipeline {
buildDiscarder(logRotator( buildDiscarder(logRotator(
numToKeepStr: '10', numToKeepStr: '10',
daysToKeepStr: '20', daysToKeepStr: '20',
artifactNumToKeepStr: '10', artifactNumToKeepStr: '1',
)) ))
/* Allows combined build to copy */ /* Allows combined build to copy */
copyArtifactPermission('/status-mobile/*') copyArtifactPermission('/status-mobile/*')

View File

@ -13,7 +13,7 @@ pipeline {
buildDiscarder(logRotator( buildDiscarder(logRotator(
numToKeepStr: '10', numToKeepStr: '10',
daysToKeepStr: '30', daysToKeepStr: '30',
artifactNumToKeepStr: '10', artifactNumToKeepStr: '1',
)) ))
} }

View File

@ -23,6 +23,7 @@ pipeline {
buildDiscarder(logRotator( buildDiscarder(logRotator(
numToKeepStr: '10', numToKeepStr: '10',
daysToKeepStr: '30', daysToKeepStr: '30',
artifactNumToKeepStr: '1',
)) ))
} }

View File

@ -23,7 +23,7 @@ pipeline {
buildDiscarder(logRotator( buildDiscarder(logRotator(
numToKeepStr: '10', numToKeepStr: '10',
daysToKeepStr: '20', daysToKeepStr: '20',
artifactNumToKeepStr: '10', artifactNumToKeepStr: '1',
)) ))
/* Allows combined build to copy */ /* Allows combined build to copy */
copyArtifactPermission('/status-mobile/*') copyArtifactPermission('/status-mobile/*')

View File

@ -15,7 +15,7 @@ pipeline {
buildDiscarder(logRotator( buildDiscarder(logRotator(
numToKeepStr: '10', numToKeepStr: '10',
daysToKeepStr: '20', daysToKeepStr: '20',
artifactNumToKeepStr: '10', artifactNumToKeepStr: '1',
)) ))
/* Abort old PR builds. */ /* Abort old PR builds. */
disableConcurrentBuilds( disableConcurrentBuilds(

View File

@ -29,6 +29,11 @@ pipeline {
options { options {
disableConcurrentBuilds() disableConcurrentBuilds()
buildDiscarder(logRotator(
numToKeepStr: '10',
daysToKeepStr: '30',
artifactNumToKeepStr: '1',
))
} }
stages { stages {

View File

@ -47,6 +47,11 @@ pipeline {
options { options {
disableConcurrentBuilds() disableConcurrentBuilds()
timeout(time: 90, unit: 'MINUTES') timeout(time: 90, unit: 'MINUTES')
buildDiscarder(logRotator(
numToKeepStr: '10',
daysToKeepStr: '30',
artifactNumToKeepStr: '1',
))
} }
stages { stages {

View File

@ -28,6 +28,11 @@ pipeline {
options { options {
disableConcurrentBuilds() disableConcurrentBuilds()
buildDiscarder(logRotator(
numToKeepStr: '10',
daysToKeepStr: '30',
artifactNumToKeepStr: '1',
))
} }

View File

@ -34,6 +34,7 @@ pipeline {
buildDiscarder(logRotator( buildDiscarder(logRotator(
numToKeepStr: '20', numToKeepStr: '20',
daysToKeepStr: '30', daysToKeepStr: '30',
artifactNumToKeepStr: '1',
)) ))
} }