File tree Expand file tree Collapse file tree 1 file changed +2
-30
lines changed Expand file tree Collapse file tree 1 file changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pipeline {
1616 when {
1717 beforeAgent(true )
1818 anyOf {
19- branch ' '
19+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
2020 not { triggeredBy ' UpstreamCause' }
2121 }
2222 }
@@ -42,7 +42,7 @@ pipeline {
4242 when {
4343 beforeAgent(true )
4444 anyOf {
45- branch ' '
45+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
4646 not { triggeredBy ' UpstreamCause' }
4747 }
4848 }
@@ -72,34 +72,6 @@ pipeline {
7272 }
7373 }
7474 }
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- }
10375 }
10476
10577 post {
You can’t perform that action at this time.
0 commit comments