File: get-pr-owners.yml

package info (click to toggle)
python-azure 20201208%2Bgit-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,437,920 kB
  • sloc: python: 4,287,452; javascript: 269; makefile: 198; sh: 187; xml: 106
file content (45 lines) | stat: -rw-r--r-- 1,634 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
parameters: 
  TargetVariable: ''
  ServiceDirectory: ''

steps:
  - pwsh: |
      git clone https://github.com/Azure/azure-sdk-tools.git $(Build.SourcesDirectory)/tools_repo
      cd $(Build.SourcesDirectory)/tools_repo
      git checkout 35ad98f821913eb0e8872f861ee60589b563c865
    displayName: Setup Identity Resolver

  - pwsh: |
      dotnet run -v q -- `
        --aad-app-id-var APP_ID `
        --aad-app-secret-var APP_SECRET `
        --aad-tenant-var AAD_TENANT `
        --kusto-url-var KUSTO_URL `
        --kusto-database-var KUSTO_DB `
        --kusto-table-var KUSTO_TABLE `
        --identity "$(Build.QueuedBy)" `
        --targetvar "${{ parameters.TargetVariable }}"
    displayName: 'Resolving Queuing User'
    continueOnError: true
    workingDirectory: $(Build.SourcesDirectory)/tools_repo/tools/notification-configuration/identity-resolver
    env:
      APP_ID: $(notification-aad-app-id)
      APP_SECRET: $(notification-aad-secret)
      AAD_TENANT: $(notification-aad-tenant)
      KUSTO_URL: $(notification-kusto-url)
      KUSTO_DB: $(notification-kusto-db)
      KUSTO_TABLE: $(notification-kusto-table)

  - pwsh: |
      Remove-Item -Force -Recurse $(Build.SourcesDirectory)/tools_repo
    displayName: Clean Up Cloned Tools Repo

  - task: PowerShell@2
    displayName: Add CodeOwners if Present
    inputs:
      pwsh: true
      filePath: $(Build.SourcesDirectory)/eng/common/scripts/get-codeowners.ps1
      arguments: >
        -TargetDirectory "/sdk/${{ parameters.ServiceDirectory }}/"
        -RootDirectory "$(Build.SourcesDirectory)"
        -VsoVariable "${{ parameters.TargetVariable }}"