Skip to content

Commit

Permalink
Attempt to set Azure Pipeline job to failed status if any step fails …
Browse files Browse the repository at this point in the history
…and has continueOnError
  • Loading branch information
mysticmind committed Jul 31, 2024
1 parent 91ecee0 commit 13da402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13da402

Please sign in to comment.