Skip to content

Commit 87a68dd

Browse files
fredg02senivam
authored andcommitted
Keep only 2 builds with artifacts and disable concurrent builds
Reduce disk usage by keeping only 2 builds with artifacts. Avoid build queue issues by disabling concurrent builds.
1 parent 89de7de commit 87a68dd

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

etc/jenkins/Jenkinsfile_EE4J_build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ pipeline {
55
triggers {
66
pollSCM('H H * * *')
77
}
8+
options {
9+
disableConcurrentBuilds()
10+
buildDiscarder(logRotator(numToKeepStr:'15', artifactNumToKeepStr: '2' ))
11+
}
812
tools {
913
jdk 'oracle-jdk8-latest'
1014
maven 'apache-maven-latest'

etc/jenkins/Jenkinsfile_ci_build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ pipeline {
33

44
options {
55
timeout(time: 30, activity: true, unit: 'HOURS')
6+
buildDiscarder(logRotator(numToKeepStr:'15', artifactNumToKeepStr: '2' ))
7+
disableConcurrentBuilds()
68
}
79

810
stages {

etc/jenkins/Jenkinsfile_master_build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ pipeline {
55
triggers {
66
pollSCM('H H * * *')
77
}
8+
options {
9+
disableConcurrentBuilds()
10+
buildDiscarder(logRotator(numToKeepStr:'15', artifactNumToKeepStr: '2' ))
11+
}
812
tools {
913
jdk 'oracle-jdk8-latest'
1014
maven 'apache-maven-latest'

0 commit comments

Comments
 (0)