mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-10-13 13:58:57 +00:00
DATAES-583 - Publish documentation for main branch.
This commit is contained in:
parent
ccfade12b0
commit
63172b8a69
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -38,8 +38,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Release to artifactory') {
|
stage('Release to artifactory') {
|
||||||
when {
|
when {
|
||||||
branch 'issue/*'
|
anyOf {
|
||||||
not { triggeredBy 'UpstreamCause' }
|
branch 'master'
|
||||||
|
not { triggeredBy 'UpstreamCause' }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
@ -66,7 +68,7 @@ pipeline {
|
|||||||
'-Dmaven.test.skip=true clean deploy -B'
|
'-Dmaven.test.skip=true clean deploy -B'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Release to artifactory with docs') {
|
stage('Publish documentation') {
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}
|
||||||
@ -84,14 +86,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ?'
|
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute ' +
|
||||||
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' +
|
|
||||||
'-Dartifactory.server=https://repo.spring.io ' +
|
'-Dartifactory.server=https://repo.spring.io ' +
|
||||||
"-Dartifactory.username=${ARTIFACTORY_USR} " +
|
"-Dartifactory.username=${ARTIFACTORY_USR} " +
|
||||||
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
|
"-Dartifactory.password=${ARTIFACTORY_PSW} " +
|
||||||
"-Dartifactory.staging-repository=libs-snapshot-local " +
|
"-Dartifactory.distribution-repository=temp-private-local " +
|
||||||
"-Dartifactory.build-name=spring-data-elasticsearch " +
|
|
||||||
"-Dartifactory.build-number=${BUILD_NUMBER} " +
|
|
||||||
'-Dmaven.test.skip=true clean deploy -B'
|
'-Dmaven.test.skip=true clean deploy -B'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user