ci(metis): make retry helper errexit-safe
This commit is contained in:
parent
34cd874a5a
commit
2cda3d1f1b
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -194,11 +194,10 @@ PY
|
||||
delay=8
|
||||
attempt=1
|
||||
while [ "${attempt}" -le "${attempts}" ]; do
|
||||
"$@"
|
||||
rc=$?
|
||||
if [ "${rc}" -eq 0 ]; then
|
||||
if "$@"; then
|
||||
return 0
|
||||
fi
|
||||
rc=$?
|
||||
if [ "${attempt}" -eq "${attempts}" ]; then
|
||||
return "${rc}"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user