|
|
|
|
@ -39,8 +39,10 @@ pipeline {
@@ -39,8 +39,10 @@ pipeline {
|
|
|
|
|
} |
|
|
|
|
stage('Release to artifactory') { |
|
|
|
|
when { |
|
|
|
|
branch 'issue/*' |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
anyOf { |
|
|
|
|
branch 'master' |
|
|
|
|
not { triggeredBy 'UpstreamCause' } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
agent { |
|
|
|
|
docker { |
|
|
|
|
@ -67,7 +69,7 @@ pipeline {
@@ -67,7 +69,7 @@ pipeline {
|
|
|
|
|
'-Dmaven.test.skip=true clean deploy -B' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
stage('Release to artifactory with docs') { |
|
|
|
|
stage('Publish documentation') { |
|
|
|
|
when { |
|
|
|
|
branch 'master' |
|
|
|
|
} |
|
|
|
|
@ -85,14 +87,11 @@ pipeline {
@@ -85,14 +87,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-jdbc " + |
|
|
|
|
"-Dartifactory.build-number=${BUILD_NUMBER} " + |
|
|
|
|
"-Dartifactory.distribution-repository=temp-private-local " + |
|
|
|
|
'-Dmaven.test.skip=true clean deploy -B' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|