Skip to content

Commit d5df4df

Browse files
committed
Test against Java 20 on CI.
See #1957.
1 parent b062675 commit d5df4df

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

Jenkinsfile

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def p = [:]
22
node {
3-
checkout scm
4-
p = readProperties interpolate: true, file: 'ci/pipeline.properties'
3+
checkout scm
4+
p = readProperties interpolate: true, file: 'ci/pipeline.properties'
55
}
66

77
pipeline {
@@ -18,7 +18,7 @@ pipeline {
1818
}
1919

2020
stages {
21-
stage("test: baseline (Java 17)") {
21+
stage("test: baseline (main)") {
2222
agent {
2323
label 'data'
2424
}
@@ -37,6 +37,36 @@ pipeline {
3737
}
3838
}
3939

40+
stage("Test other configurations") {
41+
when {
42+
beforeAgent(true)
43+
allOf {
44+
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
45+
not { triggeredBy 'UpstreamCause' }
46+
}
47+
}
48+
parallel {
49+
stage("test: baseline (next)") {
50+
agent {
51+
label 'data'
52+
}
53+
options { timeout(time: 30, unit: 'MINUTES') }
54+
environment {
55+
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
56+
}
57+
steps {
58+
script {
59+
docker.withRegistry(p['docker.registry'], p['docker.credentials']) {
60+
docker.image(p['docker.java.next.image']).inside(p['docker.java.inside.basic']) {
61+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean dependency:list verify -Dsort -B'
62+
}
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
69+
4070
stage('Build project and release to artifactory') {
4171
agent {
4272
label 'data'

0 commit comments

Comments
 (0)