Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bcce78e

Browse files
authored
fix: update release pipeline to use maven token instead of user:password (GoogleCloudPlatform#300)
1 parent 09caeca commit bcce78e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.kokoro/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ popd
1616
# Get secrets from keystore and set and environment variables.
1717
setup_environment_secrets() {
1818
export GPG_TTY=$(tty)
19-
export SONATYPE_USERNAME=functions-framework-release-bot
20-
export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/75669_functions-framework-java-release-bot-sonatype-password)
19+
export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/75669_functions-framework-java-release-bot-sonatype-password | cut -f1 -d':')
20+
export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/75669_functions-framework-java-release-bot-sonatype-password | cut -f2 -d':')
2121
export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase)
2222

2323
# Add the key ring files to $GNUPGHOME to verify the GPG credentials.

0 commit comments

Comments
 (0)