File tree 1 file changed +3
-18
lines changed 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,6 @@ pipeline {
13
13
14
14
stages {
15
15
stage(" test: baseline (jdk8)" ) {
16
- when {
17
- anyOf {
18
- branch ' main'
19
- not { triggeredBy ' UpstreamCause' }
20
- }
21
- }
22
16
agent {
23
17
label ' data'
24
18
}
@@ -39,10 +33,7 @@ pipeline {
39
33
40
34
stage(" Test other configurations" ) {
41
35
when {
42
- allOf {
43
- branch ' main'
44
- not { triggeredBy ' UpstreamCause' }
45
- }
36
+ branch(pattern : " main|(\\ d\\ .\\ d\\ .x)" , comparator : " REGEXP" )
46
37
}
47
38
parallel {
48
39
stage(" test: baseline (jdk11)" ) {
@@ -64,7 +55,7 @@ pipeline {
64
55
}
65
56
}
66
57
67
- stage(" test: baseline (jdk16 )" ) {
58
+ stage(" test: baseline (jdk17 )" ) {
68
59
agent {
69
60
label ' data'
70
61
}
@@ -75,7 +66,7 @@ pipeline {
75
66
steps {
76
67
script {
77
68
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' ) {
79
70
sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pjava11 clean dependency:list verify -Dsort -B'
80
71
}
81
72
}
@@ -86,12 +77,6 @@ pipeline {
86
77
}
87
78
88
79
stage(' Build project and release to artifactory' ) {
89
- when {
90
- anyOf {
91
- branch ' main'
92
- not { triggeredBy ' UpstreamCause' }
93
- }
94
- }
95
80
agent {
96
81
label ' data'
97
82
}
You can’t perform that action at this time.
0 commit comments