Skip to content

Commit

Permalink
Fix job conditions to allow cancelling (Azure#16374)
Browse files Browse the repository at this point in the history
Continuation of Azure#16126
  • Loading branch information
mikeharder authored and annelo-msft committed Feb 17, 2021
1 parent c602a18 commit b3811b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
artifactName: packages
path: $(Build.ArtifactStagingDirectory)
- job: "Analyze"
condition: ne(variables['Skip.Analyze'], true)
condition: and(succeededOrFailed(), ne(variables['Skip.Analyze'], true))
variables:
- template: ../variables/globals.yml
pool:
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
ignoreDirectories: "sdk/storage/Azure.Storage.Common/swagger/Generator"
condition: and(succeededOrFailed(), ne(variables['Build.Reason'],'PullRequest'))
- job: "Test"
condition: ne(variables['Skip.Test'], true)
condition: and(succeededOrFailed(), ne(variables['Skip.Test'], true))
variables:
- template: ../variables/globals.yml
strategy:
Expand Down

0 comments on commit b3811b8

Please sign in to comment.