From b3d79a777dd589765f8d8514dac8d22d17216b89 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Fri, 25 Sep 2020 12:37:37 -0700 Subject: [PATCH] actually don't fail on result --- .azure-pipelines/templates/stages/deploy-stage.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.azure-pipelines/templates/stages/deploy-stage.yml b/.azure-pipelines/templates/stages/deploy-stage.yml index 337a853d5..6c654448a 100644 --- a/.azure-pipelines/templates/stages/deploy-stage.yml +++ b/.azure-pipelines/templates/stages/deploy-stage.yml @@ -61,8 +61,7 @@ stages: local count=1 while [[ "${count}" -le 3 ]]; do # run the command in a way that doesn't disable setting `errexit` - "${@}" - result="${?}" + "${@}" || result="${?}" if [[ $result -eq 0 ]]; then break; fi count="$((count + 1))" sleep 1