@@ -4,6 +4,7 @@ pipeline {
4
4
triggers {
5
5
pollSCM ' H/10 * * * *'
6
6
upstream(upstreamProjects : " spring-data-build/3.0.x" , threshold : hudson.model.Result . SUCCESS )
7
+ cron ' @daily'
7
8
}
8
9
9
10
options {
@@ -14,8 +15,9 @@ pipeline {
14
15
stages {
15
16
stage(" test: baseline (Java 17)" ) {
16
17
when {
18
+ beforeAgent(true )
17
19
anyOf {
18
- branch ' '
20
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
19
21
not { triggeredBy ' UpstreamCause' }
20
22
}
21
23
}
@@ -39,8 +41,9 @@ pipeline {
39
41
40
42
stage(' Release to artifactory' ) {
41
43
when {
44
+ beforeAgent(true )
42
45
anyOf {
43
- branch ' '
46
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
44
47
not { triggeredBy ' UpstreamCause' }
45
48
}
46
49
}
@@ -70,34 +73,6 @@ pipeline {
70
73
}
71
74
}
72
75
}
73
- stage(' Publish documentation' ) {
74
- when {
75
- branch ' '
76
- }
77
- agent {
78
- label ' data'
79
- }
80
- options { timeout(time : 20 , unit : ' MINUTES' ) }
81
-
82
- environment {
83
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
84
- }
85
-
86
- steps {
87
- script {
88
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
89
- docker. image(' openjdk/openjdk:17-bullseye' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
90
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
91
- ' -Dartifactory.server=https://repo.spring.io ' +
92
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
93
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
94
- " -Dartifactory.distribution-repository=temp-private-local " +
95
- ' -Dmaven.test.skip=true clean deploy -U -B'
96
- }
97
- }
98
- }
99
- }
100
- }
101
76
}
102
77
103
78
post {
0 commit comments