Skip to content

Commit

Permalink
Ensure target is reset before loading a jdk pipeline config file
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Aug 11, 2023
1 parent 09a6468 commit 798ffa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/build/regeneration/build_pipeline_generator.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ node('worker') {
generatedPipelines.add(config['JOB_NAME'])

// config.load() loads into the current groovy binding, and returns "this", so we need to reset variables before next load of target
target.targetConfigurations = []
target.targetConfigurations = {}
target.triggerSchedule_nightly = '0 0 31 2 0'
target.triggerSchedule_weekly = '0 0 31 2 0'
target.weekly_release_scmReferences = []
target.weekly_release_scmReferences = {}
target.disableJob = false
})

Expand Down

0 comments on commit 798ffa9

Please sign in to comment.