Skip to content

Commit 5d33a4a

Browse files
Update azure-pipelines.yml for Azure Pipelines
1 parent 37aca87 commit 5d33a4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
variables:
1818
${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
19-
deployTarget: master
20-
${{ if eq(variables['Build.SourceBranchName'], 'RE-11234') }}:
21-
deployTarget: dev
19+
trigger_branch: master
20+
${{ if eq(variables['Build.SourceBranchName'], 'release') }}:
21+
trigger_branch: release
2222

2323

2424

2525
trigger:
26-
- master
26+
- $(trigger_branch)/*
2727

2828

2929

@@ -49,7 +49,7 @@ jobs:
4949
echo " current workspace is $(Agent.BuildDirectory)"
5050
echo "current dir is $(Build.SourcesDirectory)"
5151
echo "source branch is $(Build.SourceBranch)"
52-
echo "deploy tartget is $(deployTarget)"
52+
echo "trigger branch is $(trigger_branch)"
5353
echo testabc
5454
5555

0 commit comments

Comments
 (0)