Skip to content

Commit 3c98973

Browse files
committed
Test on Java 20 on CI.
See #381.
1 parent 1a0ebb3 commit 3c98973

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

Jenkinsfile

Lines changed: 31 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
when {
2323
beforeAgent(true)
2424
anyOf {
@@ -42,6 +42,34 @@ pipeline {
4242
}
4343
}
4444

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

0 commit comments

Comments
 (0)