This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update common templates (#109)
* chore: use latest protoc-java-resource-name-plugin in bazel WORKSPACE. new commits: - fix: stop generating `parseList` and `toStringList` if a multi-pattern resource name has subclasses (#79) googleapis/googleapis@8bea81b commit 8bea81bfa461698981b3d3a488a95633d2f6e9ff Author: Google APIs <noreply@google.com> Date: Thu Mar 26 14:44:25 2020 -0700 chore: use latest protoc-java-resource-name-plugin in bazel WORKSPACE. new commits: - fix: stop generating `parseList` and `toStringList` if a multi-pattern resource name has subclasses (#79) committer: @hzyi-google PiperOrigin-RevId: 303197602 * fix(java): run mvn install with retry (#453) googleapis/synthtool@a0d3133 commit a0d3133a5d45544a66345059eebf76933265c099 Author: Jeff Ching <chingor@google.com> Date: Tue Mar 24 15:34:29 2020 -0700 fix(java): run mvn install with retry (#453) * fix(java): run mvn install with retry * fix invocation of command * chore(java_templates): mark version bumps of current library as a chore (#452) googleapis/synthtool@ee4330a commit ee4330a0e5f4b93978e8683fbda8e6d4148326b7 Author: Jeff Ching <chingor@google.com> Date: Tue Mar 24 16:20:05 2020 -0700 chore(java_templates): mark version bumps of current library as a chore (#452) With the samples/install-without-bom/pom.xml referencing the latest released library, we want to mark updates of this version as a chore for renovate bot. * chore(java): treat samples shared configuration dependency update as chore (#457) googleapis/synthtool@e36822b commit e36822bfa0acb355502dab391b8ef9c4f30208d8 Author: Jeff Ching <chingor@google.com> Date: Wed Mar 25 09:18:16 2020 -0700 chore(java): treat samples shared configuration dependency update as chore (#457)
- Loading branch information
1 parent
2c44fa8
commit 348eae4
Showing
8 changed files
with
92 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# set -eo pipefail | ||
|
||
function retry_with_backoff { | ||
attempts_left=$1 | ||
sleep_seconds=$2 | ||
shift 2 | ||
command=$@ | ||
|
||
echo "${command}" | ||
${command} | ||
exit_code=$? | ||
|
||
if [[ $exit_code == 0 ]] | ||
then | ||
return 0 | ||
fi | ||
|
||
# failure | ||
if [[ ${attempts_left} > 0 ]] | ||
then | ||
echo "failure (${exit_code}), sleeping ${sleep_seconds}..." | ||
sleep ${sleep_seconds} | ||
new_attempts=$((${attempts_left} - 1)) | ||
new_sleep=$((${sleep_seconds} * 2)) | ||
retry_with_backoff ${new_attempts} ${new_sleep} ${command} | ||
fi | ||
|
||
return $exit_code | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters