Skip to content

Commit 1698a35

Browse files
committed
DATACMNS-1536 - Publish documentation for main branch.
1 parent 704913c commit 1698a35

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Jenkinsfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ pipeline {
3838
}
3939
stage('Release to artifactory') {
4040
when {
41-
branch 'issue/*'
42-
not { triggeredBy 'UpstreamCause' }
41+
anyOf {
42+
branch 'master'
43+
not { triggeredBy 'UpstreamCause' }
44+
}
4345
}
4446
agent {
4547
docker {
@@ -66,7 +68,7 @@ pipeline {
6668
'-Dmaven.test.skip=true clean deploy -B'
6769
}
6870
}
69-
stage('Release to artifactory with docs') {
71+
stage('Publish documentation') {
7072
when {
7173
branch 'master'
7274
}
@@ -84,14 +86,11 @@ pipeline {
8486
}
8587

8688
steps {
87-
sh 'rm -rf ?'
88-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
89+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
8990
'-Dartifactory.server=https://repo.spring.io ' +
9091
"-Dartifactory.username=${ARTIFACTORY_USR} " +
9192
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
92-
"-Dartifactory.staging-repository=libs-snapshot-local " +
93-
"-Dartifactory.build-name=spring-data-commons " +
94-
"-Dartifactory.build-number=${BUILD_NUMBER} " +
93+
"-Dartifactory.distribution-repository=temp-private-local " +
9594
'-Dmaven.test.skip=true clean deploy -B'
9695
}
9796
}

0 commit comments

Comments
 (0)