From 4e0e51cf4bcf038b88c442472921642d148d5a38 Mon Sep 17 00:00:00 2001 From: Appu Date: Thu, 1 Oct 2020 16:32:14 -0400 Subject: [PATCH] Update release script tracing (#2798) --- jib-gradle-plugin/scripts/release.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jib-gradle-plugin/scripts/release.sh b/jib-gradle-plugin/scripts/release.sh index 37dd34317f..9f984ebaf8 100755 --- a/jib-gradle-plugin/scripts/release.sh +++ b/jib-gradle-plugin/scripts/release.sh @@ -1,11 +1,12 @@ #!/bin/sh set -o errexit -set -o xtrace readonly PUBLISH_KEY=$(cat "${KOKORO_KEYSTORE_DIR}/72743_gradle_publish_key") readonly PUBLISH_SECRET=$(cat "${KOKORO_KEYSTORE_DIR}/72743_gradle_publish_secret") +set -o xtrace + gcloud components install docker-credential-gcr # docker-credential-gcr uses GOOGLE_APPLICATION_CREDENTIALS as the credentials key file @@ -21,6 +22,11 @@ export readonly JIB_INTEGRATION_TESTING_PROJECT=jib-integration-testing cd github/jib +echo "gradle publish" + +# turn of command tracing when dealing with secrets +set +o xtrace + ./gradlew :jib-gradle-plugin:publishPlugins \ -Pgradle.publish.key="${PUBLISH_KEY}" \ -Pgradle.publish.secret="${PUBLISH_SECRET}" \