msbuild

Форк
0
28 строк · 1.2 Кб
1
parameters:
2
  # Optional azure devops PAT with build execute permissions for the build's organization,
3
  # only needed if the build that should be retained ran on a different organization than 
4
  # the pipeline where this template is executing from
5
  Token: ''
6
  # Optional BuildId to retain, defaults to the current running build
7
  BuildId: ''
8
  # Azure devops Organization URI for the build in the https://dev.azure.com/<organization> format.
9
  # Defaults to the organization the current pipeline is running on
10
  AzdoOrgUri: '$(System.CollectionUri)'
11
  # Azure devops project for the build. Defaults to the project the current pipeline is running on
12
  AzdoProject: '$(System.TeamProject)'
13

14
steps:
15
  - task: powershell@2
16
    inputs:
17
      targetType: 'filePath'
18
      filePath: eng/common/retain-build.ps1
19
      pwsh: true
20
      arguments: >
21
        -AzdoOrgUri: ${{parameters.AzdoOrgUri}}
22
        -AzdoProject ${{parameters.AzdoProject}}
23
        -Token ${{coalesce(parameters.Token, '$env:SYSTEM_ACCESSTOKEN') }}
24
        -BuildId ${{coalesce(parameters.BuildId, '$env:BUILD_ID')}}
25
    displayName: Enable permanent build retention
26
    env:
27
      SYSTEM_ACCESSTOKEN: $(System.AccessToken)
28
      BUILD_ID: $(Build.BuildId)

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.