Skip to content

Commit

Permalink
Merge pull request eclipse-openj9#18271 from AdamBrousseau/print_buil…
Browse files Browse the repository at this point in the history
…d_discarder

Set default DISCARDER_NUM_BUILDS to 10
  • Loading branch information
pshipton authored Oct 12, 2023
2 parents 7463bc9 + 664f0f8 commit 676b9a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildenv/jenkins/common/variables-functions.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,10 @@ def create_job(JOB_NAME, SDK_VERSION, SPEC, downstreamJobType, id) {
// Configuring the build discarder in the downstream project

DISCARDER_NUM_BUILDS = get_value(VARIABLES.build_discarder.logs, id)
if ("${DISCARDER_NUM_BUILDS}" == "") {
println "Warning: DISCARDER_NUM_BUILDS not set in Variable file. Defaulting to '10'"
DISCARDER_NUM_BUILDS = "10"
}

def params = [:]
params.put('JOB_NAME', JOB_NAME)
Expand Down

0 comments on commit 676b9a4

Please sign in to comment.