@@ -202,7 +202,7 @@ extends:
202
202
content : ' *.nupkg'
203
203
204
204
- stage : deploy
205
- condition : and(or(contains(variables['Build.SourceBranch '], 'refs/tags/v'), eq(variables['Build.SourceBranch '], variables['PREVIEW_BRANCH'])), succeeded())
205
+ condition : and(or(contains(variables['Build.sourceBranch '], 'refs/tags/v'), eq(variables['Build.sourceBranch '], variables['PREVIEW_BRANCH'])), succeeded())
206
206
dependsOn : build
207
207
pool :
208
208
name : Azure-Pipelines-1ESPT-ExDShared
@@ -404,7 +404,7 @@ extends:
404
404
echo "##vso[task.setvariable variable=RUNNUMBER;isOutput=true]$runnumber"
405
405
displayName: 'Get truncated run number'
406
406
name: getrunnumber
407
- condition: eq(variables['Build.SourceBranch '], variables['PREVIEW_BRANCH'])
407
+ condition: eq(variables['Build.sourceBranch '], variables['PREVIEW_BRANCH'])
408
408
409
409
- bash : |
410
410
date=$(date +'%Y%m%d')
@@ -413,7 +413,7 @@ extends:
413
413
echo "##vso[task.setvariable variable=BUILDDATE]$date"
414
414
displayName: 'Get current date'
415
415
name: setdate
416
- condition: eq(variables['Build.SourceBranch '], variables['PREVIEW_BRANCH'])
416
+ condition: eq(variables['Build.sourceBranch '], variables['PREVIEW_BRANCH'])
417
417
418
418
- script : |
419
419
docker run --privileged --rm tonistiigi/binfmt --install all
@@ -439,7 +439,7 @@ extends:
439
439
"$(Build.SourcesDirectory)"
440
440
441
441
displayName: 'Build and Push Nightly Image'
442
- condition: eq(variables['Build.SourceBranch '], variables['PREVIEW_BRANCH'])
442
+ condition: eq(variables['Build.sourceBranch '], variables['PREVIEW_BRANCH'])
443
443
444
444
- bash : |
445
445
echo "Building Docker image for release..."
@@ -450,4 +450,4 @@ extends:
450
450
-t "$(REGISTRY)/$(IMAGE_NAME):${VERSION}.${BUILDDATE}${RUNNUMBER}" \
451
451
"$(Build.SourcesDirectory)"
452
452
displayName: 'Build and Push Release Image'
453
- condition: contains(variables['Build.SourceBranch '], 'refs/tags/v')
453
+ condition: contains(variables['Build.sourceBranch '], 'refs/tags/v')
0 commit comments