From 3bd1a03ea633ff6806e37998f1ea350514e5cb56 Mon Sep 17 00:00:00 2001 From: qmuntal Date: Fri, 25 Oct 2024 08:46:32 +0200 Subject: [PATCH] handle retries --- eng/pipeline/stages/run-stage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/pipeline/stages/run-stage.yml b/eng/pipeline/stages/run-stage.yml index a0db3d50d0..011e94ce99 100644 --- a/eng/pipeline/stages/run-stage.yml +++ b/eng/pipeline/stages/run-stage.yml @@ -280,7 +280,8 @@ stages: condition: and(ne(variables['TEST_BUILDER_SUCCESSFUL'], 'true'), succeeded()) ${{ if ne(attempt, 'FINAL') }}: ignoreLASTEXITCODE: true - ${{ if eq(parameters.builder.broken, true) }}: + ${{ elseif eq(parameters.builder.broken, true) }}: + # Don't fail the job if we are at the last retry and the builder is marked as broken. continueOnError: true # - ${{ if eq(parameters.builder.config, 'buildandpack' ) }}: