@@ -15,7 +15,7 @@ pipeline {
15
15
stage(" test: baseline (jdk8)" ) {
16
16
when {
17
17
anyOf {
18
- branch ' '
18
+ branch ' ** '
19
19
not { triggeredBy ' UpstreamCause' }
20
20
}
21
21
}
@@ -40,7 +40,7 @@ pipeline {
40
40
stage(" Test other configurations" ) {
41
41
when {
42
42
allOf {
43
- branch ' '
43
+ branch ' main '
44
44
not { triggeredBy ' UpstreamCause' }
45
45
}
46
46
}
@@ -88,7 +88,7 @@ pipeline {
88
88
stage(' Release to artifactory' ) {
89
89
when {
90
90
anyOf {
91
- branch ' '
91
+ branch ' ** '
92
92
not { triggeredBy ' UpstreamCause' }
93
93
}
94
94
}
@@ -118,34 +118,6 @@ pipeline {
118
118
}
119
119
}
120
120
}
121
- stage(' Publish documentation' ) {
122
- when {
123
- branch ' '
124
- }
125
- agent {
126
- label ' data'
127
- }
128
- options { timeout(time : 20 , unit : ' MINUTES' ) }
129
-
130
- environment {
131
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
132
- }
133
-
134
- steps {
135
- script {
136
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
137
- docker. image(' adoptopenjdk/openjdk8:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
138
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
139
- ' -Dartifactory.server=https://repo.spring.io ' +
140
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
141
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
142
- " -Dartifactory.distribution-repository=temp-private-local " +
143
- ' -Dmaven.test.skip=true clean deploy -U -B'
144
- }
145
- }
146
- }
147
- }
148
- }
149
121
}
150
122
151
123
post {
0 commit comments