Skip to content

Commit 6ff1f05

Browse files
committed
DATAREDIS-1380 - Publish documentation for main branch.
1 parent 4f9304c commit 6ff1f05

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
@@ -77,8 +77,10 @@ pipeline {
7777

7878
stage('Release to artifactory') {
7979
when {
80-
branch 'issue/*'
81-
not { triggeredBy 'UpstreamCause' }
80+
anyOf {
81+
branch 'master'
82+
not { triggeredBy 'UpstreamCause' }
83+
}
8284
}
8385
agent {
8486
docker {
@@ -106,7 +108,7 @@ pipeline {
106108
}
107109
}
108110

109-
stage('Release to artifactory with docs') {
111+
stage('Publish documentation') {
110112
when {
111113
branch 'master'
112114
}
@@ -124,14 +126,11 @@ pipeline {
124126
}
125127

126128
steps {
127-
sh 'rm -rf ?'
128-
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
129+
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
129130
'-Dartifactory.server=https://repo.spring.io ' +
130131
"-Dartifactory.username=${ARTIFACTORY_USR} " +
131132
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
132-
"-Dartifactory.staging-repository=libs-snapshot-local " +
133-
"-Dartifactory.build-name=spring-data-redis " +
134-
"-Dartifactory.build-number=${BUILD_NUMBER} " +
133+
"-Dartifactory.distribution-repository=temp-private-local " +
135134
'-Dmaven.test.skip=true clean deploy -B'
136135
}
137136
}

0 commit comments

Comments
 (0)