Move (start) the deployment of docs stage before the deployment of artifacts stage.
This commit is contained in:
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
@@ -64,6 +64,25 @@ pipeline {
|
||||
|
||||
stage ('Deploy') {
|
||||
parallel {
|
||||
stage ('Deploy Docs') {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
|
||||
docker.image('adoptopenjdk/openjdk8:latest').inside("--name ${env.HOSTNAME}Two -u root -v /tmp:/tmp") {
|
||||
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
|
||||
try {
|
||||
sh "ci/deployDocs.sh"
|
||||
}
|
||||
catch (e) {
|
||||
currentBuild.result = "FAILED: deploy docs"
|
||||
throw e
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ('Deploy Artifacts') {
|
||||
steps {
|
||||
script {
|
||||
@@ -89,25 +108,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ('Deploy Docs') {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry('', 'hub.docker.com-springbuildmaster') {
|
||||
docker.image('adoptopenjdk/openjdk8:latest').inside("--name ${env.HOSTNAME}Two -u root -v /tmp:/tmp") {
|
||||
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
|
||||
try {
|
||||
sh "ci/deployDocs.sh"
|
||||
}
|
||||
catch (e) {
|
||||
currentBuild.result = "FAILED: deploy docs"
|
||||
throw e
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user