From fabf9dec13fb5c3ff51907ede7b0f11fb16b8960 Mon Sep 17 00:00:00 2001 From: John Blum Date: Thu, 8 Apr 2021 22:08:48 -0700 Subject: [PATCH] Move (start) the deployment of docs stage before the deployment of artifacts stage. --- Jenkinsfile | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f84176e2..bbc833ec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 - } - } - } - } - } - } - } } } }