@@ -33,26 +33,7 @@ pipeline {
33
33
}
34
34
}
35
35
}
36
- stage(' Publish OpenJDK 11 + Redis 6.2 docker image' ) {
37
- when {
38
- anyOf {
39
- changeset " ci/openjdk11-redis-6.2/**"
40
- changeset " Makefile"
41
- }
42
- }
43
- agent { label ' data' }
44
- options { timeout(time : 20 , unit : ' MINUTES' ) }
45
-
46
- steps {
47
- script {
48
- def image = docker. build(" springci/spring-data-openjdk11-with-redis-6.2" , " -f ci/openjdk11-redis-6.2/Dockerfile ." )
49
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
50
- image. push()
51
- }
52
- }
53
- }
54
- }
55
- stage(' Publish OpenJDK 16 + Redis 6.2 docker image' ) {
36
+ stage(' Publish OpenJDK 17 + Redis 6.2 docker image' ) {
56
37
when {
57
38
anyOf {
58
39
changeset " ci/openjdk16-redis-6.2/**"
@@ -64,7 +45,7 @@ pipeline {
64
45
65
46
steps {
66
47
script {
67
- def image = docker. build(" springci/spring-data-openjdk16 -with-redis-6.2" , " -f ci/openjdk16 -redis-6.2/Dockerfile ." )
48
+ def image = docker. build(" springci/spring-data-openjdk17 -with-redis-6.2" , " -f ci/openjdk17 -redis-6.2/Dockerfile ." )
68
49
docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
69
50
image. push()
70
51
}
@@ -76,8 +57,9 @@ pipeline {
76
57
77
58
stage(" test: baseline (jdk8)" ) {
78
59
when {
60
+ beforeAgent(true )
79
61
anyOf {
80
- branch ' main'
62
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
81
63
not { triggeredBy ' UpstreamCause' }
82
64
}
83
65
}
@@ -101,13 +83,14 @@ pipeline {
101
83
102
84
stage(" Test other configurations" ) {
103
85
when {
86
+ beforeAgent(true )
104
87
allOf {
105
- branch ' main'
88
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
106
89
not { triggeredBy ' UpstreamCause' }
107
90
}
108
91
}
109
92
parallel {
110
- stage(" test: baseline (jdk11 )" ) {
93
+ stage(" test: baseline (jdk17 )" ) {
111
94
agent {
112
95
label ' data'
113
96
}
@@ -118,25 +101,7 @@ pipeline {
118
101
steps {
119
102
script {
120
103
docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
121
- docker. image(' springci/spring-data-openjdk11-with-redis-6.2:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
122
- sh ' PROFILE=java11 ci/test.sh'
123
- }
124
- }
125
- }
126
- }
127
- }
128
- stage(" test: baseline (jdk16)" ) {
129
- agent {
130
- label ' data'
131
- }
132
- options { timeout(time : 30 , unit : ' MINUTES' ) }
133
- environment {
134
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
135
- }
136
- steps {
137
- script {
138
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
139
- docker. image(' springci/spring-data-openjdk16-with-redis-6.2:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
104
+ docker. image(' springci/spring-data-openjdk17-with-redis-6.2:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
140
105
sh ' PROFILE=java11 ci/test.sh'
141
106
}
142
107
}
@@ -148,8 +113,9 @@ pipeline {
148
113
149
114
stage(' Release to artifactory' ) {
150
115
when {
116
+ beforeAgent(true )
151
117
anyOf {
152
- branch ' main'
118
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
153
119
not { triggeredBy ' UpstreamCause' }
154
120
}
155
121
}
@@ -179,35 +145,6 @@ pipeline {
179
145
}
180
146
}
181
147
}
182
-
183
- stage(' Publish documentation' ) {
184
- when {
185
- branch ' main'
186
- }
187
- agent {
188
- label ' data'
189
- }
190
- options { timeout(time : 20 , unit : ' MINUTES' ) }
191
-
192
- environment {
193
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
194
- }
195
-
196
- steps {
197
- script {
198
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
199
- docker. image(' adoptopenjdk/openjdk8:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
200
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
201
- ' -Dartifactory.server=https://repo.spring.io ' +
202
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
203
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
204
- " -Dartifactory.distribution-repository=temp-private-local " +
205
- ' -Dmaven.test.skip=true clean deploy -U -B'
206
- }
207
- }
208
- }
209
- }
210
- }
211
148
}
212
149
213
150
post {
0 commit comments