Skip to content

Commit b5ed057

Browse files
committed
applied a 30 day build retention policy for all branches
Signed-off-by: Sombrio <[email protected]>
1 parent 38f93c6 commit b5ed057

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

jenkins/public_nightly.Jenkinsfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
node {
44

5-
properties([copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME)]);
5+
properties([
6+
copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME),
7+
8+
buildDiscarder(logRotator(
9+
daysToKeepStr: '20',
10+
artifactDaysToKeepStr: '20'
11+
))
12+
]);
613

714
stage('Checkout ORFS') {
815
checkout([

jenkins/public_tests_all.Jenkinsfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
node {
44

5-
properties([copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME)]);
5+
properties([
6+
copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME),
7+
8+
buildDiscarder(logRotator(
9+
daysToKeepStr: '30',
10+
artifactDaysToKeepStr: '30'
11+
))
12+
]);
613

714
stage('Checkout') {
815
if (env.BRANCH_NAME && env.BRANCH_NAME == 'master') {

0 commit comments

Comments
 (0)