mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
[VAULT-28666] Remove the errexit option from the retry script and add increasing wait on failure (up to 5 seconds and 5 retries) (#27842)
Co-authored-by: VAL <val@hashicorp.com>
This commit is contained in:
4
.github/scripts/retry-command.sh
vendored
4
.github/scripts/retry-command.sh
vendored
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copyright (c) HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: BUSL-1.1
|
||||
set -euo pipefail
|
||||
set -uo pipefail
|
||||
|
||||
tries=5
|
||||
count=0
|
||||
@@ -14,5 +14,5 @@ do
|
||||
fi
|
||||
((count++))
|
||||
echo "trying again, attempt $count"
|
||||
sleep 2
|
||||
sleep $count
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user