Skip to content

Commit c0ebc9c

Browse files
committed
Polishing.
See #2423
1 parent 9fbf391 commit c0ebc9c

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

Jenkinsfile

+3-31
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pipeline {
1515
stage("test: baseline (jdk8)") {
1616
when {
1717
anyOf {
18-
branch ''
18+
branch '**'
1919
not { triggeredBy 'UpstreamCause' }
2020
}
2121
}
@@ -40,7 +40,7 @@ pipeline {
4040
stage("Test other configurations") {
4141
when {
4242
allOf {
43-
branch ''
43+
branch 'main'
4444
not { triggeredBy 'UpstreamCause' }
4545
}
4646
}
@@ -88,7 +88,7 @@ pipeline {
8888
stage('Release to artifactory') {
8989
when {
9090
anyOf {
91-
branch ''
91+
branch '**'
9292
not { triggeredBy 'UpstreamCause' }
9393
}
9494
}
@@ -118,34 +118,6 @@ pipeline {
118118
}
119119
}
120120
}
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-
}
149121
}
150122

151123
post {

0 commit comments

Comments
 (0)