Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
fix(azure-pipelines): do not deploy if tests stage fails
Browse files Browse the repository at this point in the history
  • Loading branch information
julie-ng committed Sep 8, 2020
1 parent 82f8bb4 commit a398ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: $(BuildID)

trigger:
- fix/*
- feat/*
- main
- release
Expand Down Expand Up @@ -99,7 +100,6 @@ stages:

- stage: Tests
displayName: 'CI'
# condition: false
jobs:
- job: Audit
displayName: Audit Dependencies
Expand Down Expand Up @@ -143,7 +143,7 @@ stages:

- stage: BuildAndDeploy
displayName: 'Build and Deploy'
condition: ${{ variables['is-deployment'] }}
condition: and(succeeded('Tests'), ${{ variables['is-deployment'] }})
jobs:
- job: build_and_deploy
displayName: 'Build and Deploy'
Expand Down

0 comments on commit a398ca2

Please sign in to comment.