File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,10 @@ try {
174
174
checkout scm
175
175
sh " git clean -dfx"
176
176
withCredentials([file(credentialsId : ' docs.spring.io-jenkins_private_ssh_key' , variable : ' DEPLOY_SSH_KEY' )]) {
177
- withEnv([" JAVA_HOME=${ tool 'jdk8' } " ]) {
178
- sh " ./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
177
+ withCredentials([ARTIFACTORY_CREDENTIALS ]) {
178
+ withEnv([" JAVA_HOME=${ tool 'jdk8' } " ]) {
179
+ sh " ./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
180
+ }
179
181
}
180
182
}
181
183
}
@@ -187,8 +189,10 @@ try {
187
189
checkout scm
188
190
sh " git clean -dfx"
189
191
withCredentials([file(credentialsId : ' docs.spring.io-jenkins_private_ssh_key' , variable : ' DEPLOY_SSH_KEY' )]) {
190
- withEnv([" JAVA_HOME=${ tool 'jdk8' } " ]) {
191
- sh " ./gradlew deploySchema -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
192
+ withCredentials([ARTIFACTORY_CREDENTIALS ]) {
193
+ withEnv([" JAVA_HOME=${ tool 'jdk8' } " ]) {
194
+ sh " ./gradlew deploySchema -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
195
+ }
192
196
}
193
197
}
194
198
}
You can’t perform that action at this time.
0 commit comments