Skip to content

Commit 37aca87

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
# name: kmmtestrepo
1515
# endpoint: ado-test
1616

17-
17+
variables:
18+
${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
19+
deployTarget: master
20+
${{ if eq(variables['Build.SourceBranchName'], 'RE-11234') }}:
21+
deployTarget: dev
1822

1923

2024

@@ -45,6 +49,7 @@ jobs:
4549
echo " current workspace is $(Agent.BuildDirectory)"
4650
echo "current dir is $(Build.SourcesDirectory)"
4751
echo "source branch is $(Build.SourceBranch)"
52+
echo "deploy tartget is $(deployTarget)"
4853
echo testabc
4954
5055

0 commit comments

Comments
 (0)