Provide artifactoryUsername/Password in docs and schema jobs
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -174,8 +174,10 @@ try {
|
|||||||
checkout scm
|
checkout scm
|
||||||
sh "git clean -dfx"
|
sh "git clean -dfx"
|
||||||
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
|
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
|
||||||
withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) {
|
withCredentials([ARTIFACTORY_CREDENTIALS]) {
|
||||||
sh "./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
|
withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) {
|
||||||
|
sh "./gradlew deployDocs -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --refresh-dependencies --no-daemon --stacktrace"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -187,8 +189,10 @@ try {
|
|||||||
checkout scm
|
checkout scm
|
||||||
sh "git clean -dfx"
|
sh "git clean -dfx"
|
||||||
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
|
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
|
||||||
withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) {
|
withCredentials([ARTIFACTORY_CREDENTIALS]) {
|
||||||
sh "./gradlew deploySchema -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
|
withEnv(["JAVA_HOME=${ tool 'jdk8' }"]) {
|
||||||
|
sh "./gradlew deploySchema -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME --refresh-dependencies --no-daemon --stacktrace"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user