This repository was archived by the owner on Dec 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ function retry_with_backoff {
2525
2626 # allow a failures to continue
2727 set +e
28- echo " ${command} "
2928 ${command}
3029 exit_code=$?
3130
Original file line number Diff line number Diff line change @@ -20,19 +20,22 @@ python3 -m pip install gcp-releasetool
2020python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
2121
2222source $( dirname " $0 " ) /common.sh
23+ source $( dirname " $0 " ) /../common.sh
2324MAVEN_SETTINGS_FILE=$( realpath $( dirname " $0 " ) /../../) /settings.xml
2425pushd $( dirname " $0 " ) /../../
2526
2627setup_environment_secrets
2728create_settings_xml_file " settings.xml"
2829
29- mvn clean install deploy -B \
30- --settings ${MAVEN_SETTINGS_FILE} \
31- -DskipTests=true \
32- -DperformRelease=true \
33- -Dgpg.executable=gpg \
34- -Dgpg.passphrase=${GPG_PASSPHRASE} \
35- -Dgpg.homedir=${GPG_HOMEDIR}
30+ # attempt to stage 3 times with exponential backoff (starting with 10 seconds)
31+ retry_with_backoff 3 10 \
32+ mvn clean install deploy -B \
33+ --settings ${MAVEN_SETTINGS_FILE} \
34+ -DskipTests=true \
35+ -DperformRelease=true \
36+ -Dgpg.executable=gpg \
37+ -Dgpg.passphrase=${GPG_PASSPHRASE} \
38+ -Dgpg.homedir=${GPG_HOMEDIR}
3639
3740if [[ -n " ${AUTORELEASE_PR} " ]]
3841then
Original file line number Diff line number Diff line change 44 "git": {
55 "name": ".",
66 "remote": "https://github.com/googleapis/java-speech.git",
7- "sha": "eacc760985ce51057db558604a1f7cff4f627a7c "
7+ "sha": "2876445389c98ed085d67e2df78dbb6a86b3e484 "
88 }
99 },
1010 {
2727 "git": {
2828 "name": "synthtool",
2929 "remote": "https://github.com/googleapis/synthtool.git",
30- "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58 "
30+ "sha": "68742c6016bf0d16948a572633d17955a8737414 "
3131 }
3232 }
3333 ],
You can’t perform that action at this time.
0 commit comments