Welcome to mirror list, hosted at ThFree Co, Russian Federation.

promote-build.yml « post-build « templates « common « eng - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6b479c3b82a89b8b4c9d10efe4f58767ac21dcfb (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
25
parameters:
  ChannelId: 0

jobs:
- job:
  displayName: Promote Build
  dependsOn: setupMaestroVars
  condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.ChannelId }}))
  variables:
    - name: BARBuildId
      value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
    - name: ChannelId
      value: ${{ parameters.ChannelId }}
  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) 
          -MaestroApiAccessToken $(MaestroApiAccessToken)
          -MaestroApiEndPoint $(MaestroApiEndPoint)
          -MaestroApiVersion $(MaestroApiVersion)