Skip to content

Commit 57dfbee

Browse files
committed
Provide artifactoryUsername/Password in docs and schema jobs
1 parent 1181740 commit 57dfbee

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Jenkinsfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@ try {
174174
checkout scm
175175
sh "git clean -dfx"
176176
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+
}
179181
}
180182
}
181183
}
@@ -187,8 +189,10 @@ try {
187189
checkout scm
188190
sh "git clean -dfx"
189191
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+
}
192196
}
193197
}
194198
}

0 commit comments

Comments
 (0)