@@ -3,7 +3,7 @@ pipeline {
3
3
4
4
triggers {
5
5
pollSCM ' H/10 * * * *'
6
- upstream(upstreamProjects : " spring-data-keyvalue/main " , threshold : hudson.model.Result . SUCCESS )
6
+ upstream(upstreamProjects : " spring-data-keyvalue/3.0.x " , threshold : hudson.model.Result . SUCCESS )
7
7
}
8
8
9
9
options {
@@ -17,7 +17,7 @@ pipeline {
17
17
stage(' Publish JDK 17 + Redis 6.2 Docker image' ) {
18
18
when {
19
19
anyOf {
20
- changeset " ci/openjdk17-redis6 .2/**"
20
+ changeset " ci/openjdk17-redis-6 .2/**"
21
21
changeset " Makefile"
22
22
}
23
23
}
@@ -26,7 +26,7 @@ pipeline {
26
26
27
27
steps {
28
28
script {
29
- def image = docker. build(" springci/spring-data-openjdk17-with-redis-6.2" , " -f ci/openjdk17-redis6 .2/Dockerfile ." )
29
+ def image = docker. build(" springci/spring-data-openjdk17-with-redis-6.2" , " -f ci/openjdk17-redis-6 .2/Dockerfile ." )
30
30
docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
31
31
image. push()
32
32
}
@@ -38,8 +38,9 @@ pipeline {
38
38
39
39
stage(" test: baseline (Java 17)" ) {
40
40
when {
41
+ beforeAgent(true )
41
42
anyOf {
42
- branch ' main'
43
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
43
44
not { triggeredBy ' UpstreamCause' }
44
45
}
45
46
}
@@ -63,8 +64,9 @@ pipeline {
63
64
64
65
stage(' Release to artifactory' ) {
65
66
when {
67
+ beforeAgent(true )
66
68
anyOf {
67
- branch ' main'
69
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
68
70
not { triggeredBy ' UpstreamCause' }
69
71
}
70
72
}
@@ -94,35 +96,6 @@ pipeline {
94
96
}
95
97
}
96
98
}
97
-
98
- stage(' Publish documentation' ) {
99
- when {
100
- branch ' main'
101
- }
102
- agent {
103
- label ' data'
104
- }
105
- options { timeout(time : 20 , unit : ' MINUTES' ) }
106
-
107
- environment {
108
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
109
- }
110
-
111
- steps {
112
- script {
113
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
114
- docker. image(' openjdk:17-bullseye' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
115
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
116
- ' -Dartifactory.server=https://repo.spring.io ' +
117
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
118
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
119
- " -Dartifactory.distribution-repository=temp-private-local " +
120
- ' -Dmaven.test.skip=true clean deploy -U -B'
121
- }
122
- }
123
- }
124
- }
125
- }
126
99
}
127
100
128
101
post {
0 commit comments