From 13da4026731212338199ffa39c2b5336b2bb8703 Mon Sep 17 00:00:00 2001 From: mysticmind Date: Wed, 31 Jul 2024 19:26:10 +0530 Subject: [PATCH] Attempt to set Azure Pipeline job to failed status if any step fails and has continueOnError --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6ad3fe42c1..1fa5c53586 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -196,7 +196,7 @@ jobs: condition: eq(variables['plv8'], 'true') # This step will fail the job if the any previous step had failed - script: | - if [ $(System.JobStatus) == 'SucceededWithIssues' ]; then + if [ $(Agent.JobStatus) == 'SucceededWithIssues' ]; then exit 1 fi name: CheckForFailure