Skip to content

Commit

Permalink
Udpate to use global variable template in release stage (Azure#21197)
Browse files Browse the repository at this point in the history
* Update to use global variable template in release stage
  • Loading branch information
praveenkuttappan authored Apr 5, 2022
1 parent 510ab71 commit 9734616
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eng/pipelines/templates/stages/archetype-js-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ stages:
- ${{if and(in(variables['Build.Reason'], 'Manual', ''), eq(variables['System.TeamProject'], 'internal'))}}:
- ${{ each artifact in parameters.Artifacts }}:
- stage:
variables:
- template: /eng/pipelines/templates/variables/globals.yml
displayName: 'Release: ${{artifact.name}}'
dependsOn: ${{parameters.DependsOn}}
condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-js-pr'))
Expand Down Expand Up @@ -193,9 +195,6 @@ stages:
name: azsdk-pool-mms-ubuntu-2004-general
vmImage: MMSUbuntu20.04

variables:
- template: /eng/pipelines/templates/variables/globals.yml

strategy:
runOnce:
deploy:
Expand Down Expand Up @@ -243,6 +242,8 @@ stages:

- stage: Integration
dependsOn: ${{parameters.DependsOn}}
variables:
- template: /eng/pipelines/templates/variables/globals.yml
jobs:
- job: PublishPackages
# Run Integration job only if SetDevVersion is set to true or ( SetDevVersion is empty and job is a scheduled CI run)
Expand Down Expand Up @@ -328,4 +329,4 @@ stages:
- metadata/
- ci-configs/packages-latest.json
- ci-configs/packages-preview.json
DocValidationImageId: "$(DocValidationImageId)"
DocValidationImageId: "$(DocValidationImageId)"

0 comments on commit 9734616

Please sign in to comment.