Skip to content

Commit

Permalink
Store build results and discard old build records
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kaapu <[email protected]>
  • Loading branch information
mkaapu committed Mar 20, 2024
1 parent 7d13c3a commit bdc7474
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ghaf-build-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ properties([

pipeline {
agent { label 'built-in' }
options { timestamps () }
options {
timestamps ()
buildDiscarder logRotator(
artifactDaysToKeepStr: '7',
artifactNumToKeepStr: '10',
daysToKeepStr: '70',
numToKeepStr: '100'
)
}
environment {
// https://stackoverflow.com/questions/46680573
REPO = params.getOrDefault('REPO', DEF_GHAF_REPO)
Expand Down Expand Up @@ -90,4 +98,9 @@ pipeline {
}
}
}
}
post {
always {
archiveArtifacts allowEmptyArchive: true, artifacts: 'ghaf/result-*/**'
}
}
}

0 comments on commit bdc7474

Please sign in to comment.