File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
synthtool/gcp/templates/java_library/.kokoro Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ function retry_with_backoff {
25
25
26
26
# allow a failures to continue
27
27
set +e
28
- echo " ${command} "
29
28
${command}
30
29
exit_code=$?
31
30
Original file line number Diff line number Diff line change @@ -20,19 +20,22 @@ python3 -m pip install gcp-releasetool
20
20
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
21
21
22
22
source $( dirname " $0 " ) /common.sh
23
+ source $( dirname " $0 " ) /../common.sh
23
24
MAVEN_SETTINGS_FILE=$( realpath $( dirname " $0 " ) /../../) /settings.xml
24
25
pushd $( dirname " $0 " ) /../../
25
26
26
27
setup_environment_secrets
27
28
create_settings_xml_file " settings.xml"
28
29
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}
36
39
37
40
if [[ -n " ${AUTORELEASE_PR} " ]]
38
41
then
You can’t perform that action at this time.
0 commit comments