Skip to content

Commit f7a9b0f

Browse files
Update evaluation_pipeline_generator.groovy so it generates "tip" version (#707)
* Generate evaluation-openjdk21-pipeline current head Signed-off-by: Andrew Leonard <[email protected]> * Generate evaluation-openjdk21-pipeline current head Signed-off-by: Andrew Leonard <[email protected]> --------- Signed-off-by: Andrew Leonard <[email protected]>
1 parent 86519fe commit f7a9b0f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pipelines/build/regeneration/evaluation_pipeline_generator.groovy

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ node('worker') {
4848
}
4949

5050
timestamps {
51-
def validVersion = [8, 11, 17, 20]
51+
def retiredVersions = [9, 10, 12, 13, 14, 15, 16, 18, 19]
5252
def generatedPipelines = []
5353

5454
// Load git url and branch and gitBranch. These determine where we will be pulling user configs from.
@@ -146,7 +146,10 @@ node('worker') {
146146
int headVersion = (int) response[('tip_version')]
147147

148148
(8..headVersion + 1).each({ javaVersion ->
149-
if (validVersion.contains(javaVersion)) {
149+
if (retiredVersions.contains(javaVersion)) {
150+
println "[INFO] $javaVersion is a retired version that isn't currently built. Skipping generation..."
151+
return
152+
} else {
150153

151154
def config = [
152155
TEST : false,
@@ -186,8 +189,12 @@ node('worker') {
186189
targetEvaluation = load nonUFile2
187190
}
188191
} catch (NoSuchFileException e2) {
189-
throw new Exception("[ERROR] enable to load jdk${javaVersion}u_evaluation.groovy nor jdk${javaVersion}_evaluation.groovy does not exist!")
192+
println "[WARNING] No evaluation config found for JDK${javaVersion} in the User's or Adopt's repository. Skipping generation..."
193+
// break and move to next element in the loop
194+
// groovylint-disable-next-line
195+
return
190196
}
197+
checkoutUserPipelines()
191198
}
192199
config.put('targetConfigurations', targetEvaluation.targetConfigurations)
193200

0 commit comments

Comments
 (0)