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 537d0ba commit 4f34db5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
DEFAULT_SERIALIZER: $(serializer)
- script: ./build.sh mocha
displayName: mocha
continueOnError: true
# continueOnError: true
env:
DEFAULT_SERIALIZER: $(serializer)
- script: ./build.sh test-base-lib
Expand Down Expand Up @@ -194,4 +194,11 @@ jobs:
env:
DEFAULT_SERIALIZER: $(serializer)
condition: eq(variables['plv8'], 'true')
# This step will fail the job if the any previous step had failed
- script: |
if [ $(System.JobStatus) == 'SucceededWithIssues' ]; then
exit 1
fi
name: CheckForFailure
condition: always()

0 comments on commit 4f34db5

Please sign in to comment.