Skip to content

Commit 8c30688

Browse files
committed
Verify against Java 20 in CI.
See #136.
1 parent 1e5ca53 commit 8c30688

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Jenkinsfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,36 @@ pipeline {
4747
}
4848
}
4949

50+
stage("Verify other configurations") {
51+
when {
52+
beforeAgent(true)
53+
allOf {
54+
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
55+
not { triggeredBy 'UpstreamCause' }
56+
}
57+
}
58+
parallel {
59+
stage("verify (next)") {
60+
agent {
61+
label 'data'
62+
}
63+
options { timeout(time: 30, unit: 'MINUTES') }
64+
environment {
65+
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
66+
}
67+
steps {
68+
script {
69+
docker.withRegistry(p['docker.registry'], p['docker.credentials']) {
70+
docker.image(p['docker.java.next.image']).inside(p['docker.java.inside.basic']) {
71+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pwith-bom-client verify -B -U'
72+
}
73+
}
74+
}
75+
}
76+
}
77+
}
78+
}
79+
5080
stage('Build project and release to artifactory') {
5181
when {
5282
beforeAgent(true)

0 commit comments

Comments
 (0)