From c3b4cabb9f6b231ce6d650b39a3014582667ac06 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Fri, 31 May 2019 14:04:56 -0600 Subject: [PATCH] Reinstate docs and schema deployments Fixes: gh-6929 --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b5e56bd706..f7c69aab77 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,6 +66,30 @@ try { } } } + }, + docs: { + stage('Deploy Docs') { + node { + checkout scm + withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) { + withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) { + sh "./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace" + } + } + } + } + }, + schema: { + stage('Deploy Schema') { + node { + checkout scm + withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) { + withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) { + sh "./gradlew deploySchema -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace" + } + } + } + } } } } finally {