diff --git a/.kokoro/common.sh b/.kokoro/common.sh index 81bc572333..a274c5168c 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -21,6 +21,7 @@ set -eov pipefail setup_environment_secrets() { export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) export GPG_TTY=$(tty) + export TMPDIR=$(mktemp -d) export GPG_HOMEDIR=${TMPDIR}/gpg mkdir $GPG_HOMEDIR mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg