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