Skip to content

Commit a3ee36d

Browse files
Update azure-pipelines.yml for Azure Pipelines
1 parent 91ce112 commit a3ee36d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ jobs:
6464
echo "Build.BuildUri is $(Build.BuildUri)"
6565
echo "project name is : $(System.TeamProject)"
6666
echo "https://dev.azure.com/mingmingkong-org/$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
67-
67+
68+
case "$(Build.SourceBranch)" in
69+
refs/heads/master) echo "##vso[build.addbuildtag]Main" ;;
70+
refs/heads/release/*) echo "##vso[build.addbuildtag]Release" ;;
71+
refs/heads/hotfix/*) echo "##vso[build.addbuildtag]Hotfix" ;;
72+
refs/pull/*/merge) echo "##vso[build.addbuildtag]PR" ;;
73+
esac
6874
6975
7076

0 commit comments

Comments
 (0)