Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjii79 committed Feb 22, 2024
1 parent f1cfd7d commit de5e30e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ pipeline {
def imageTags = isMasterBranch() || isReleaseBranch() ? "${versionText},${gitCommitHash}" : "${gitCommitHash}"
withDockerCredentials(DOCKERHUB_CREDS, "FROM_") {
withDockerCredentials("harbor.h2o.ai", "TO_") {
sh 'rm -rf /tmp/google-cloud-tools-java && mkdir -p /tmp/google-cloud-tools-java/jib && echo "{ \"disableUpdateCheck\": false }" > /tmp/google-cloud-tools-java/jib/config.json && chmod 666 /tmp/google-cloud-tools-java/jib/config.json'
sh 'rm -rf /tmp/.config/google-cloud-tools-java && mkdir -p /tmp/.config/google-cloud-tools-java/jib && echo "{ \"disableUpdateCheck\": false }" > /tmp/.config/google-cloud-tools-java/jib/config.json && chmod 666 /tmp/.config/google-cloud-tools-java/jib/config.json'
sh "XDG_CONFIG_HOME=/tmp && ./gradlew --init-script init.gradle jib \
-Djib.to.auth.username=${TO_DOCKER_USERNAME} \
-Djib.to.auth.password=${TO_DOCKER_PASSWORD} \
Expand Down Expand Up @@ -206,7 +206,7 @@ pipeline {
def imageTags = isMasterBranch() || isReleaseBranch() ? "${versionText},${gitCommitHash}" : "${gitCommitHash}"
withDockerCredentials(DOCKERHUB_CREDS, "FROM_") {
withDockerCredentials(DOCKERHUB_CREDS, "TO_") {
sh 'rm -rf /tmp/google-cloud-tools-java && mkdir -p /tmp/google-cloud-tools-java/jib && echo "{ \"disableUpdateCheck\": false }" > /tmp/google-cloud-tools-java/jib/config.json && chmod 666 /tmp/google-cloud-tools-java/jib/config.json'
sh 'rm -rf /tmp/.config/google-cloud-tools-java && mkdir -p /tmp/.config/google-cloud-tools-java/jib && echo "{ \"disableUpdateCheck\": false }" > /tmp/.config/google-cloud-tools-java/jib/config.json && chmod 666 /tmp/.config/google-cloud-tools-java/jib/config.json'
sh "XDG_CONFIG_HOME=/tmp && ./gradlew --init-script init.gradle jib \
-Djib.to.auth.username=${TO_DOCKER_USERNAME} \
-Djib.to.auth.password=${TO_DOCKER_PASSWORD} \
Expand Down Expand Up @@ -244,7 +244,7 @@ pipeline {
withGCRCredentials(VORVAN_CRED) {
def gcrCreds = readFile("${GCR_JSON_KEY}")
withEnv(['TO_DOCKER_USERNAME=_json_key', "TO_DOCKER_PASSWORD=${gcrCreds}"]) {
sh 'rm -rf /tmp/google-cloud-tools-java && mkdir -p /tmp/google-cloud-tools-java/jib && echo "{ \"disableUpdateCheck\": false }" > /tmp/google-cloud-tools-java/jib/config.json && chmod 666 /tmp/google-cloud-tools-java/jib/config.json'
sh 'rm -rf /tmp/.config/google-cloud-tools-java && mkdir -p /tmp/.config/google-cloud-tools-java/jib && echo "{ \"disableUpdateCheck\": false }" > /tmp/.config/google-cloud-tools-java/jib/config.json && chmod 666 /tmp/.config/google-cloud-tools-java/jib/config.json'
sh "XDG_CONFIG_HOME=/tmp && ./gradlew --init-script init.gradle jib \
-Djib.from.auth.username=${FROM_DOCKER_USERNAME} \
-Djib.from.auth.password=${FROM_DOCKER_PASSWORD} \
Expand Down

0 comments on commit de5e30e

Please sign in to comment.