@@ -33,7 +33,7 @@ pipeline {
33
33
34
34
steps {
35
35
script {
36
- def image = docker. build(" springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " , " --build-arg BASE=${ p['docker.java.main.image']} --build-arg REDIS =${ p['docker.redis.6.version']} -f ci/openjdk17-redis-6.2/Dockerfile ." )
36
+ def image = docker. build(" springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " , " --build-arg BASE=${ p['docker.java.main.image']} --build-arg VERSION =${ p['docker.redis.6.version']} -f ci/openjdk17-redis-6.2/Dockerfile ." )
37
37
docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
38
38
image. push()
39
39
}
@@ -53,7 +53,27 @@ pipeline {
53
53
54
54
steps {
55
55
script {
56
- def image = docker. build(" springci/spring-data-with-redis-7.2:${ p['java.main.tag']} " , " --build-arg BASE=${ p['docker.java.main.image']} --build-arg REDIS=${ p['docker.redis.7.version']} -f ci/openjdk17-redis-7.2/Dockerfile ." )
56
+ def image = docker. build(" springci/spring-data-with-redis-7.2:${ p['java.main.tag']} " , " --build-arg BASE=${ p['docker.java.main.image']} --build-arg VERSION=${ p['docker.redis.7.version']} -f ci/openjdk17-redis-7.2/Dockerfile ." )
57
+ docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
58
+ image. push()
59
+ }
60
+ }
61
+ }
62
+ }
63
+ stage(' Publish JDK 17 + Valkey 7.2 Docker Image' ) {
64
+ when {
65
+ anyOf {
66
+ changeset " ci/openjdk17-valkey-7.2/Dockerfile"
67
+ changeset " Makefile"
68
+ changeset " ci/pipeline.properties"
69
+ }
70
+ }
71
+ agent { label ' data' }
72
+ options { timeout(time : 20 , unit : ' MINUTES' ) }
73
+
74
+ steps {
75
+ script {
76
+ def image = docker. build(" springci/spring-data-with-valkey-7.2:${ p['java.main.tag']} " , " --build-arg BASE=${ p['docker.java.main.image']} --build-arg VERSION=${ p['docker.redis.7.version']} -f ci/openjdk17-redis-7.2/Dockerfile ." )
57
77
docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
58
78
image. push()
59
79
}
@@ -73,7 +93,7 @@ pipeline {
73
93
74
94
steps {
75
95
script {
76
- def image = docker. build(" springci/spring-data-with-redis-6.2:${ p['java.next.tag']} " , " --build-arg BASE=${ p['docker.java.next.image']} --build-arg REDIS =${ p['docker.redis.6.version']} -f ci/openjdk21-redis-6.2/Dockerfile ." )
96
+ def image = docker. build(" springci/spring-data-with-redis-6.2:${ p['java.next.tag']} " , " --build-arg BASE=${ p['docker.java.next.image']} --build-arg VERSION =${ p['docker.redis.6.version']} -f ci/openjdk21-redis-6.2/Dockerfile ." )
77
97
docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
78
98
image. push()
79
99
}
@@ -97,13 +117,14 @@ pipeline {
97
117
options { timeout(time : 30 , unit : ' MINUTES' ) }
98
118
environment {
99
119
ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
100
- DEVELOCITY_CACHE = credentials(" ${ p['develocity.cache.credentials']} " )
101
120
DEVELOCITY_ACCESS_KEY = credentials(" ${ p['develocity.access-key']} " )
102
121
}
103
122
steps {
104
123
script {
105
- docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
106
- sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
124
+ docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
125
+ docker. image(" springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
126
+ sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
127
+ }
107
128
}
108
129
}
109
130
}
@@ -125,13 +146,14 @@ pipeline {
125
146
options { timeout(time : 30 , unit : ' MINUTES' ) }
126
147
environment {
127
148
ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
128
- DEVELOCITY_CACHE = credentials(" ${ p['develocity.cache.credentials']} " )
129
149
DEVELOCITY_ACCESS_KEY = credentials(" ${ p['develocity.access-key']} " )
130
150
}
131
151
steps {
132
152
script {
133
- docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
134
- sh " PROFILE=runtimehints LONG_TESTS=false JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
153
+ docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
154
+ docker. image(" springci/spring-data-with-redis-6.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
155
+ sh " PROFILE=runtimehints LONG_TESTS=false JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
156
+ }
135
157
}
136
158
}
137
159
}
@@ -143,13 +165,14 @@ pipeline {
143
165
options { timeout(time : 30 , unit : ' MINUTES' ) }
144
166
environment {
145
167
ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
146
- DEVELOCITY_CACHE = credentials(" ${ p['develocity.cache.credentials']} " )
147
168
DEVELOCITY_ACCESS_KEY = credentials(" ${ p['develocity.access-key']} " )
148
169
}
149
170
steps {
150
171
script {
151
- docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-redis-6.2:${ p['java.next.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
152
- sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
172
+ docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
173
+ docker. image(" springci/spring-data-with-redis-6.2:${ p['java.next.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
174
+ sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
175
+ }
153
176
}
154
177
}
155
178
}
@@ -161,13 +184,34 @@ pipeline {
161
184
options { timeout(time : 30 , unit : ' MINUTES' ) }
162
185
environment {
163
186
ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
164
- DEVELOCITY_CACHE = credentials(" ${ p['develocity.cache.credentials']} " )
165
187
DEVELOCITY_ACCESS_KEY = credentials(" ${ p['develocity.access-key']} " )
166
188
}
167
189
steps {
168
190
script {
169
- docker. image(" harbor-repo.vmware.com/dockerhub-proxy-cache/springci/spring-data-with-redis-7.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
170
- sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
191
+ docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
192
+ docker. image(" springci/spring-data-with-redis-7.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
193
+ sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ stage(" test: Valkey 7" ) {
201
+ agent {
202
+ label ' data'
203
+ }
204
+ options { timeout(time : 30 , unit : ' MINUTES' ) }
205
+ environment {
206
+ ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
207
+ DEVELOCITY_ACCESS_KEY = credentials(" ${ p['develocity.access-key']} " )
208
+ }
209
+ steps {
210
+ script {
211
+ docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
212
+ docker. image(" springci/spring-data-with-valkey-7.2:${ p['java.main.tag']} " ). inside(' -v $HOME:/tmp/jenkins-home' ) {
213
+ sh " PROFILE=none LONG_TESTS=true JENKINS_USER_NAME=${ p['jenkins.user.name']} ci/test.sh"
214
+ }
171
215
}
172
216
}
173
217
}
@@ -190,25 +234,23 @@ pipeline {
190
234
191
235
environment {
192
236
ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
193
- DEVELOCITY_CACHE = credentials(" ${ p['develocity.cache.credentials']} " )
194
237
DEVELOCITY_ACCESS_KEY = credentials(" ${ p['develocity.access-key']} " )
195
238
}
196
239
197
240
steps {
198
241
script {
199
- docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
200
- sh ' MAVEN_OPTS="-Duser.name=' + " ${ p['jenkins.user.name']} " + ' -Duser.home=/tmp/jenkins-home" ' +
201
- " DEVELOCITY_CACHE_USERNAME=${ DEVELOCITY_CACHE_USR} " +
202
- " DEVELOCITY_CACHE_PASSWORD=${ DEVELOCITY_CACHE_PSW} " +
203
- " GRADLE_ENTERPRISE_ACCESS_KEY=${ DEVELOCITY_ACCESS_KEY} " +
204
- " ./mvnw -s settings.xml -Pci,artifactory " +
205
- " -Dartifactory.server=${ p['artifactory.url']} " +
206
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
207
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
208
- " -Dartifactory.staging-repository=${ p['artifactory.repository.snapshot']} " +
209
- " -Dartifactory.build-name=spring-data-redis " +
210
- " -Dartifactory.build-number=spring-data-redis-${ BRANCH_NAME} -build-${ BUILD_NUMBER} " +
211
- " -Dmaven.test.skip=true clean deploy -U -B"
242
+ docker. withRegistry(p[' docker.proxy.registry' ], p[' docker.proxy.credentials' ]) {
243
+ docker. image(p[' docker.java.main.image' ]). inside(p[' docker.java.inside.basic' ]) {
244
+ sh ' MAVEN_OPTS="-Duser.name=' + " ${ p['jenkins.user.name']} " + ' -Duser.home=/tmp/jenkins-home" ' +
245
+ " ./mvnw -s settings.xml -Pci,artifactory " +
246
+ " -Dartifactory.server=${ p['artifactory.url']} " +
247
+ " -Dartifactory.username=${ ARTIFACTORY_USR} " +
248
+ " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
249
+ " -Dartifactory.staging-repository=${ p['artifactory.repository.snapshot']} " +
250
+ " -Dartifactory.build-name=spring-data-redis " +
251
+ " -Dartifactory.build-number=spring-data-redis-${ BRANCH_NAME} -build-${ BUILD_NUMBER} " +
252
+ " -Dmaven.test.skip=true clean deploy -U -B"
253
+ }
212
254
}
213
255
}
214
256
}
@@ -218,10 +260,6 @@ pipeline {
218
260
post {
219
261
changed {
220
262
script {
221
- slackSend(
222
- color : (currentBuild. currentResult == ' SUCCESS' ) ? ' good' : ' danger' ,
223
- channel : ' #spring-data-dev' ,
224
- message : " ${ currentBuild.fullDisplayName} - `${ currentBuild.currentResult} `\n ${ env.BUILD_URL} " )
225
263
emailext(
226
264
subject : " [${ currentBuild.fullDisplayName} ] ${ currentBuild.currentResult} " ,
227
265
mimeType : ' text/html' ,
0 commit comments