Add 'Deploy Docs' build phase/task.

This commit is contained in:
John Blum
2018-06-25 21:18:32 -07:00
parent 8d84ca4bd1
commit 2d2411791f

10
Jenkinsfile vendored
View File

@@ -62,6 +62,16 @@ try {
}
}
}
docs: {
stage('Deploy Docs') {
node {
checkout scm
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
sh "./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
}
}
}
}
}
}
finally {