Skip to content

Commit

Permalink
Revert "Replace PAT with AAD token (#18929)" (#18939)
Browse files Browse the repository at this point in the history
This reverts commit d10d637.
  • Loading branch information
Pranshu-Negi authored Sep 11, 2023
1 parent b19956f commit 2a608dd
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions ci/ci-test-tasks/canary-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,13 @@ jobs:
displayName: 'Detect changed tasks'
name: detect
- job: get_ado_token
displayName: Get ADO Token
pool:
vmImage: ubuntu-20.04
steps:
- task: AzureCLI@2
inputs:
azureSubscription: 'ci-test-tasks'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: '$adoToken_HT = $(az account get-access-token) | ConvertFrom-Json; Write-Host "##vso[task.setvariable variable=ADOTOKEN;isOutput=true;issecret=true]$($adoToken_HT.accessToken)"'
displayName: 'Get ADO Token using WIF'
name: token

- job: run_main_test_pipeline
displayName: Run main test pipeline
condition: and(succeeded(),gt(length(dependencies.detect_changes.outputs['detect.TASKS']), 0))
dependsOn: [ detect_changes , get_ado_token ]
dependsOn: detect_changes
variables:
- name: tasks
value: $[dependencies.detect_changes.outputs['detect.TASKS']]
- name: adoToken
value: $[dependencies.get_ado_token.outputs['token.ADOTOKEN']]
pool:
vmImage: ubuntu-20.04
steps:
Expand All @@ -45,6 +29,6 @@ jobs:
displayName: npm i axios
- script: |
echo $(tasks)
node ./ci/ci-test-tasks/test-and-verify-v2.js $(adoToken) $(ADOUrl) $(System.TeamProject) $(tasks)
node ./ci/ci-test-tasks/test-and-verify-v2.js $(ADOToken) $(ADOUrl) $(System.TeamProject) $(tasks)
displayName: 'Run test pipelines and verify results'
failOnStderr: true

0 comments on commit 2a608dd

Please sign in to comment.