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-datastore.git",
7- "sha": "45918ec931dd9ba02672ebaf7209771fa871a8ca "
7+ "sha": "b660f4475a16b9730c0338f20aa259153a31ffd3 "
88 }
99 },
1010 {
1919 "git": {
2020 "name": "synthtool",
2121 "remote": "https://github.com/googleapis/synthtool.git",
22- "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58 "
22+ "sha": "68742c6016bf0d16948a572633d17955a8737414 "
2323 }
2424 }
2525 ],
You can’t perform that action at this time.
0 commit comments