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
|
delay=8
|
||||||
attempt=1
|
attempt=1
|
||||||
while [ "${attempt}" -le "${attempts}" ]; do
|
while [ "${attempt}" -le "${attempts}" ]; do
|
||||||
"$@"
|
if "$@"; then
|
||||||
rc=$?
|
|
||||||
if [ "${rc}" -eq 0 ]; then
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
rc=$?
|
||||||
if [ "${attempt}" -eq "${attempts}" ]; then
|
if [ "${attempt}" -eq "${attempts}" ]; then
|
||||||
return "${rc}"
|
return "${rc}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user