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