We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ce112 commit a3ee36dCopy full SHA for a3ee36d
azure-pipelines.yml
@@ -64,7 +64,13 @@ jobs:
64
echo "Build.BuildUri is $(Build.BuildUri)"
65
echo "project name is : $(System.TeamProject)"
66
echo "https://dev.azure.com/mingmingkong-org/$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
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
74
75
76
0 commit comments