diff --git a/Jenkinsfile b/Jenkinsfile index 3c9fee2..f17f1b2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -255,8 +255,9 @@ PY while [ "${attempt}" -le "${attempts}" ]; do if "$@"; then return 0 + else + rc=$? fi - rc=$? if [ "${attempt}" -eq "${attempts}" ]; then return "${rc}" fi