Move (start) the deployment of docs stage before the deployment of artifacts stage.

This commit is contained in:
John Blum
2021-04-08 22:08:48 -07:00
parent 30b7c66f23
commit fabf9dec13

38
Jenkinsfile vendored
View File

@@ -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
}
}
}
}
}
}
}
}
}
}