Skip to content

Commit 0b8d516

Browse files
authored
Fix AZP artifact names (#415)
* update pipeline.yaml
1 parent 2e8d6f5 commit 0b8d516

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.pipelines/pipeline.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ stages:
5050
5151
- script: |
5252
echo "##vso[task.setvariable variable=CommitHash;isOutput=true]$(git rev-parse HEAD)"
53-
BRANCH=$(git rev-parse --abbrev-ref HEAD)
53+
export BRANCH=$(Build.SourceBranchName)
54+
echo Building branch $BRANCH from $(Build.SourceBranch)
5455
if [[ "$BRANCH" == "master" ]]; then
5556
echo "##vso[task.setvariable variable=Tag;isOutput=true]$(git describe --tags --abbrev=0)"
5657
echo "Set tag to $(git describe --tags --abbrev=0)"

0 commit comments

Comments
 (0)