Use expressions

This commit is contained in:
Adrien Ferrand 2020-06-30 22:23:17 +02:00
parent 07fa8d7548
commit 4f4c1fc499

View file

@ -9,5 +9,5 @@ pr: none
stages:
- template: templates/stages/test-and-package-stage.yml
# Notify failures only for release branches.
- template: templates/stages/notify-failure-stage.yml
condition: and(failed(), endsWith(variables['Build.SourceBranchName', '.x'])
- ${{ if endsWith(variables['Build.SourceBranchName'], '.x') }}:
- template: templates/stages/notify-failure-stage.yml