summaryrefslogtreecommitdiff
path: root/eng/common/templates/post-build/promote-build.yml
blob: af48b0b339e28f69c180826c59124c5a9f7e46e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
parameters:
  ChannelId: 0

jobs:
- job:
  displayName: Promote Build
  dependsOn: setupMaestroVars
  condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], ${{ parameters.ChannelId }})
  variables:
    - name: BARBuildId
      value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
    - name: ChannelId
      value: ${{ parameters.ChannelId }}
    - group: Publish-Build-Assets
  pool:
    vmImage: 'windows-2019'
  steps:
    - task: PowerShell@2
      displayName: Add Build to Channel
      inputs:
        filePath: $(Build.SourcesDirectory)/eng/common/post-build/promote-build.ps1
        arguments: -BuildId $(BARBuildId) 
          -ChannelId $(ChannelId) 
          -BarToken $(MaestroAccessToken)