diff --git a/Jenkinsfile b/Jenkinsfile index 3c64942c..d442d839 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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} \ @@ -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} \ @@ -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} \