Skip to content

Commit

Permalink
Test on Java 21 (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Aug 15, 2023
1 parent e169419 commit 27debef
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ if (needSplittingFromWorkspace) {
def axes = [
jenkinsVersions: ['lts', 'latest'],
platforms: ['linux'],
jdks: ['17'],
jdks: [11, 21],
browsers: ['firefox'],
]

stage('Record builds and sessions') {
retry(conditions: [kubernetesAgent(handleNonKubernetes: true), nonresumable()], count: 2) {
node('maven-17') {
node('maven-21') {
infra.checkoutSCM()
def athCommit = sh(script: 'git rev-parse HEAD', returnStdout: true).trim()
withCredentials([string(credentialsId: 'launchable-jenkins-acceptance-test-harness', variable: 'LAUNCHABLE_TOKEN')]) {
Expand Down Expand Up @@ -81,7 +81,7 @@ stage('Record builds and sessions') {
branches['CI'] = {
stage('CI') {
retry(count: 2, conditions: [kubernetesAgent(handleNonKubernetes: true), nonresumable()]) {
node('maven-17') {
node('maven-21') {
checkout scm
def mavenOptions = [
'-Dset.changelist',
Expand All @@ -90,7 +90,7 @@ branches['CI'] = {
'clean',
'install',
]
infra.runMaven(mavenOptions, 17)
infra.runMaven(mavenOptions, 21)
infra.prepareToPublishIncrementals()
}
}
Expand All @@ -101,6 +101,12 @@ for (int i = 0; i < splits.size(); i++) {
int index = i
axes.values().combinations {
def (jenkinsVersion, platform, jdk, browser) = it
if (jdk == 21 && jenkinsVersion != 'latest') {
return
}
if (jdk != 21 && jenkinsVersion == 'latest') {
return
}
def name = "${jenkinsVersion}-${platform}-jdk${jdk}-${browser}-split${index}"
branches[name] = {
stage(name) {
Expand Down

0 comments on commit 27debef

Please sign in to comment.