Skip to content

Commit 98071aa

Browse files
committed
Simplify build pipeline.
See #1537
1 parent 0e5f17d commit 98071aa

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

Jenkinsfile

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ pipeline {
1313

1414
stages {
1515
stage("test: baseline (jdk8)") {
16-
when {
17-
anyOf {
18-
branch 'main'
19-
not { triggeredBy 'UpstreamCause' }
20-
}
21-
}
2216
agent {
2317
label 'data'
2418
}
@@ -39,10 +33,7 @@ pipeline {
3933

4034
stage("Test other configurations") {
4135
when {
42-
allOf {
43-
branch 'main'
44-
not { triggeredBy 'UpstreamCause' }
45-
}
36+
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
4637
}
4738
parallel {
4839
stage("test: baseline (jdk11)") {
@@ -64,7 +55,7 @@ pipeline {
6455
}
6556
}
6657

67-
stage("test: baseline (jdk16)") {
58+
stage("test: baseline (jdk17)") {
6859
agent {
6960
label 'data'
7061
}
@@ -75,7 +66,7 @@ pipeline {
7566
steps {
7667
script {
7768
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
78-
docker.image('adoptopenjdk/openjdk16:latest').inside('-v $HOME:/tmp/jenkins-home') {
69+
docker.image('openjdk:17-bullseye').inside('-v $HOME:/tmp/jenkins-home') {
7970
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pjava11 clean dependency:list verify -Dsort -B'
8071
}
8172
}
@@ -86,12 +77,6 @@ pipeline {
8677
}
8778

8879
stage('Build project and release to artifactory') {
89-
when {
90-
anyOf {
91-
branch 'main'
92-
not { triggeredBy 'UpstreamCause' }
93-
}
94-
}
9580
agent {
9681
label 'data'
9782
}

0 commit comments

Comments
 (0)