Skip to content

Commit

Permalink
fix: ReturnNullFromCatchBlock return -> continue
Browse files Browse the repository at this point in the history
  • Loading branch information
zdtsw committed Jan 31, 2023
1 parent b2daaa9 commit 5db575d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pipelines/build/regeneration/build_pipeline_generator.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@ node('worker') {
SCRIPT : "${scriptFolderPath}/openjdk_pipeline.groovy",
disableJob : false,
pipelineSchedule : '0 0 31 2 0', // 31st Feb, so will never run,
<<<<<<< HEAD
adoptScripts : false,
releaseType : 'Nightly'
=======
adoptScripts : false
>>>>>>> 112beac (fix: ReturnNullFromCatchBlock return -> continue)
]

def target
Expand All @@ -184,9 +188,7 @@ node('worker') {
target = load "${WORKSPACE}/${ADOPT_DEFAULTS_JSON['configDirectories']['nightly']}/jdk${javaVersion}u.groovy"
} catch (NoSuchFileException e4) {
println "[WARNING] No config found for JDK${javaVersion} in the User's or Adopt's repository. Skipping generation..."
// break and move to next element in the loop
// groovylint-disable-next-line
return
continue // break and move to next element in the loop
}
}
checkoutUserPipelines()
Expand Down Expand Up @@ -284,7 +286,7 @@ node('worker') {
println "[SUCCESS] THE FOLLOWING PIPELINES WERE GENERATED IN THE ${jobRoot} FOLDER"
println generatedPipelines
}
}
}
} finally {
// Always clean up, even on failure (doesn't delete the created jobs)
println '[INFO] Cleaning up...'
Expand Down

0 comments on commit 5db575d

Please sign in to comment.