File tree 1 file changed +4
-30
lines changed
1 file changed +4
-30
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ pipeline {
14
14
stages {
15
15
stage(" test: baseline (jdk17)" ) {
16
16
when {
17
+ beforeAgent(true )
17
18
anyOf {
18
- branch ' main'
19
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
19
20
not { triggeredBy ' UpstreamCause' }
20
21
}
21
22
}
@@ -42,8 +43,9 @@ pipeline {
42
43
43
44
stage(' Release to artifactory' ) {
44
45
when {
46
+ beforeAgent(true )
45
47
anyOf {
46
- branch ' main'
48
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
47
49
not { triggeredBy ' UpstreamCause' }
48
50
}
49
51
}
@@ -73,34 +75,6 @@ pipeline {
73
75
}
74
76
}
75
77
}
76
- stage(' Publish documentation' ) {
77
- when {
78
- branch ' main'
79
- }
80
- agent {
81
- label ' data'
82
- }
83
- options { timeout(time : 20 , unit : ' MINUTES' ) }
84
-
85
- environment {
86
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
87
- }
88
-
89
- steps {
90
- script {
91
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
92
- docker. image(' openjdk:17-bullseye' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
93
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
94
- ' -Dartifactory.server=https://repo.spring.io ' +
95
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
96
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
97
- " -Dartifactory.distribution-repository=temp-private-local " +
98
- ' -Dmaven.test.skip=true clean deploy -U -B'
99
- }
100
- }
101
- }
102
- }
103
- }
104
78
}
105
79
106
80
post {
You can’t perform that action at this time.
0 commit comments