File tree 3 files changed +12
-10
lines changed
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 {
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
Original file line number Diff line number Diff line change 4
4
"git": {
5
5
"name": ".",
6
6
"remote": "https://github.com/googleapis/java-core.git",
7
- "sha": "a647e2964c0830355cfd6f0023e08b0863691083 "
7
+ "sha": "23b5b1d8cdc1c48677e6305ac388ef50a33d6fc1 "
8
8
}
9
9
},
10
10
{
11
11
"git": {
12
12
"name": "synthtool",
13
13
"remote": "https://github.com/googleapis/synthtool.git",
14
- "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58 "
14
+ "sha": "68742c6016bf0d16948a572633d17955a8737414 "
15
15
}
16
16
}
17
17
],
You can’t perform that action at this time.
0 commit comments