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 2e8d6f5 commit 0b8d516Copy full SHA for 0b8d516
.pipelines/pipeline.yaml
@@ -50,7 +50,8 @@ stages:
50
51
- script: |
52
echo "##vso[task.setvariable variable=CommitHash;isOutput=true]$(git rev-parse HEAD)"
53
- BRANCH=$(git rev-parse --abbrev-ref HEAD)
+ export BRANCH=$(Build.SourceBranchName)
54
+ echo Building branch $BRANCH from $(Build.SourceBranch)
55
if [[ "$BRANCH" == "master" ]]; then
56
echo "##vso[task.setvariable variable=Tag;isOutput=true]$(git describe --tags --abbrev=0)"
57
echo "Set tag to $(git describe --tags --abbrev=0)"
0 commit comments