Skip to content

Commit 97a0126

Browse files
committed
Reinstate docs and schema deployments
Fixes: gh-6929
1 parent 47d13ac commit 97a0126

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Jenkinsfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,30 @@ try {
141141
}
142142
}
143143
}
144+
},
145+
docs: {
146+
stage('Deploy Docs') {
147+
node {
148+
checkout scm
149+
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
150+
withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) {
151+
sh "./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
152+
}
153+
}
154+
}
155+
}
156+
},
157+
schema: {
158+
stage('Deploy Schema') {
159+
node {
160+
checkout scm
161+
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
162+
withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) {
163+
sh "./gradlew deploySchema -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
164+
}
165+
}
166+
}
167+
}
144168
}
145169
}
146170
} catch(Exception e) {

0 commit comments

Comments
 (0)