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 25aba20 commit 278d4f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ pipeline {
def imageTags = isMasterBranch() || isReleaseBranch() ? "${versionText},${gitCommitHash}" : "${gitCommitHash}"
withDockerCredentials(DOCKERHUB_CREDS, "FROM_") {
withDockerCredentials("harbor.h2o.ai", "TO_") {
withEnv(["XDG_CONFIG_HOME=/tmp"]) {
sh "rm -rf ${XDG_CONFIG_HOME}/google-cloud-tools-java && mkdir -p ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib && echo '{ \"disableUpdateCheck\": false }' > ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json && chmod 666 ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json"
withEnv(["XDG_CONFIG_HOME=/tmp", "XDG_CACHE_HOME=/tmp"]) {
//sh "rm -rf ${XDG_CONFIG_HOME}/google-cloud-tools-java && mkdir -p ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib && echo '{ \"disableUpdateCheck\": false }' > ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json && chmod 666 ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json"
sh "./gradlew --init-script init.gradle jib \
-Djib.to.auth.username=${TO_DOCKER_USERNAME} \
-Djib.to.auth.password=${TO_DOCKER_PASSWORD} \
Expand Down Expand Up @@ -208,8 +208,8 @@ pipeline {
def imageTags = isMasterBranch() || isReleaseBranch() ? "${versionText},${gitCommitHash}" : "${gitCommitHash}"
withDockerCredentials(DOCKERHUB_CREDS, "FROM_") {
withDockerCredentials(DOCKERHUB_CREDS, "TO_") {
withEnv(["XDG_CONFIG_HOME=/tmp"]) {
sh "rm -rf ${XDG_CONFIG_HOME}/google-cloud-tools-java && mkdir -p ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib && echo '{ \"disableUpdateCheck\": false }' > ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json && chmod 666 ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json"
withEnv(["XDG_CONFIG_HOME=/tmp", "XDG_CACHE_HOME=/tmp"]) {
//sh "rm -rf ${XDG_CONFIG_HOME}/google-cloud-tools-java && mkdir -p ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib && echo '{ \"disableUpdateCheck\": false }' > ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json && chmod 666 ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json"
sh "./gradlew --init-script init.gradle jib \
-Djib.to.auth.username=${TO_DOCKER_USERNAME} \
-Djib.to.auth.password=${TO_DOCKER_PASSWORD} \
Expand Down Expand Up @@ -247,8 +247,8 @@ pipeline {
withDockerCredentials(DOCKERHUB_CREDS, "FROM_") {
withGCRCredentials(VORVAN_CRED) {
def gcrCreds = readFile("${GCR_JSON_KEY}")
withEnv(['TO_DOCKER_USERNAME=_json_key', "TO_DOCKER_PASSWORD=${gcrCreds}", "XDG_CONFIG_HOME=/tmp"]) {
sh "rm -rf ${XDG_CONFIG_HOME}/google-cloud-tools-java && mkdir -p ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib && echo '{ \"disableUpdateCheck\": false }' > ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json && chmod 666 ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json"
withEnv(['TO_DOCKER_USERNAME=_json_key', "TO_DOCKER_PASSWORD=${gcrCreds}", "XDG_CONFIG_HOME=/tmp", "XDG_CACHE_HOME=/tmp"]) {
//sh "rm -rf ${XDG_CONFIG_HOME}/google-cloud-tools-java && mkdir -p ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib && echo '{ \"disableUpdateCheck\": false }' > ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json && chmod 666 ${XDG_CONFIG_HOME}/google-cloud-tools-java/jib/config.json"
sh "./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 278d4f4

Please sign in to comment.