Skip to content

Commit

Permalink
Keep only 2 builds with artifacts and disable concurrent builds
Browse files Browse the repository at this point in the history
Reduce disk usage by keeping only 2 builds with artifacts. Avoid build
queue issues by disabling concurrent builds.
  • Loading branch information
fredg02 committed Oct 1, 2024
1 parent 89de7de commit bbda153
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etc/jenkins/Jenkinsfile_EE4J_build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ pipeline {
triggers {
pollSCM('H H * * *')
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr:'15', artifactNumToKeepStr: '2' ))
}
tools {
jdk 'oracle-jdk8-latest'
maven 'apache-maven-latest'
Expand Down
2 changes: 2 additions & 0 deletions etc/jenkins/Jenkinsfile_ci_build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pipeline {

options {
timeout(time: 30, activity: true, unit: 'HOURS')
buildDiscarder(logRotator(numToKeepStr:'15', artifactNumToKeepStr: '2' ))
disableConcurrentBuilds()
}

stages {
Expand Down
4 changes: 4 additions & 0 deletions etc/jenkins/Jenkinsfile_master_build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ pipeline {
triggers {
pollSCM('H H * * *')
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr:'15', artifactNumToKeepStr: '2' ))
}
tools {
jdk 'oracle-jdk8-latest'
maven 'apache-maven-latest'
Expand Down

0 comments on commit bbda153

Please sign in to comment.