Skip to content
Snippets Groups Projects
Commit a14af718 authored by garciadeblas's avatar garciadeblas
Browse files

Disable immediate exit during retries of Gitea API operations


Change-Id: I05afbe1dce9ac68756099922bfe1abb7e622ea93
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 3b7b55c9
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,12 @@ function gitea_api_operation() {
fi
}
# Disable immediate exit during retries of API operations
set +e
monitor_condition gitea_api_operation "Gitea API operation did not succeed yet...\n" 120 5
RET=$?
set -e
if [[ $RET -ne 0 ]]
then
echo -e "\nFATAL: Gitea API operation did not succeed after several retries. ABORTED.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment