Skip to content

Commit dd18434

Browse files
committed
#121 - Publish documentation for main branch.
1 parent 861a2b1 commit dd18434

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Jenkinsfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ pipeline {
4040

4141
stage('Release to artifactory') {
4242
when {
43-
branch 'issue/*'
44-
not { triggeredBy 'UpstreamCause' }
43+
anyOf {
44+
branch 'master'
45+
not { triggeredBy 'UpstreamCause' }
46+
}
4547
}
4648
agent {
4749
docker {
@@ -68,8 +70,8 @@ pipeline {
6870
'-Dmaven.test.skip=true clean deploy -B'
6971
}
7072
}
71-
72-
stage('Release to artifactory with docs') {
73+
74+
stage('Publish documentation') {
7375
when {
7476
branch 'master'
7577
}
@@ -87,14 +89,11 @@ pipeline {
8789
}
8890

8991
steps {
90-
sh 'rm -rf ?'
91-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
92+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
9293
'-Dartifactory.server=https://repo.spring.io ' +
9394
"-Dartifactory.username=${ARTIFACTORY_USR} " +
9495
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
95-
"-Dartifactory.staging-repository=libs-snapshot-local " +
96-
"-Dartifactory.build-name=spring-data-r2dbc " +
97-
"-Dartifactory.build-number=${BUILD_NUMBER} " +
96+
"-Dartifactory.distribution-repository=temp-private-local " +
9897
'-Dmaven.test.skip=true clean deploy -B'
9998
}
10099
}

0 commit comments

Comments
 (0)