Skip to content

Commit 2d0b9d3

Browse files
Fix build version script
1 parent c9e9782 commit 2d0b9d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ stages:
4646

4747
- script: |
4848
echo "Setting BUILD_VERSION..."
49-
echo "##vso[task.setvariable variable=BUILD_VERSION]$(date +'%Y%m%d')-$(Build.SourceVersionShort)"
50-
echo "::add-mask::$(date +'%Y%m%d')-$(Build.SourceVersionShort)"
49+
BUILD_VERSION=$(date +'%Y%m%d')-$(Build.SourceVersionShort)
50+
echo "##vso[task.setvariable variable=BUILD_VERSION]$BUILD_VERSION"
51+
echo "::add-mask::$BUILD_VERSION"
5152
displayName: "Set Secret Build Version"
5253
5354
- task: Docker@2

0 commit comments

Comments
 (0)