Browse Source

DATAMONGO-2280 - Publish documentation for main branch.

pull/773/head
Greg Turnquist 7 years ago
parent
commit
0eebf64ec3
No known key found for this signature in database
GPG Key ID: CB2FA4D512B5C413
  1. 13
      Jenkinsfile

13
Jenkinsfile vendored

@ -107,9 +107,11 @@ pipeline { @@ -107,9 +107,11 @@ pipeline {
stage('Release to artifactory') {
when {
branch 'issue/*'
anyOf {
branch 'master'
not { triggeredBy 'UpstreamCause' }
}
}
agent {
docker {
image 'adoptopenjdk/openjdk8:latest'
@ -136,7 +138,7 @@ pipeline { @@ -136,7 +138,7 @@ pipeline {
}
}
stage('Release to artifactory with docs') {
stage('Publish documentation') {
when {
branch 'master'
}
@ -154,14 +156,11 @@ pipeline { @@ -154,14 +156,11 @@ pipeline {
}
steps {
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
'-Dartifactory.server=https://repo.spring.io ' +
"-Dartifactory.username=${ARTIFACTORY_USR} " +
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
"-Dartifactory.staging-repository=libs-snapshot-local " +
"-Dartifactory.build-name=spring-data-mongodb " +
"-Dartifactory.build-number=${BUILD_NUMBER} " +
"-Dartifactory.distribution-repository=temp-private-local " +
'-Dmaven.test.skip=true clean deploy -B'
}
}

Loading…
Cancel
Save