Skip to content

Commit

Permalink
Enable use of pipeline credential. Fixes microsoft/azure-pipelines-ta…
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljurek authored Jul 12, 2024
1 parent 3a7fc1c commit 75d30bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eng/pipelines/templates/steps/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ steps:
azurePowerShellVersion: LatestVersion
ScriptType: InlineScript
Inline: |
$account = (Get-AzContext).Account
$env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id
$env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants
./eng/scripts/run_tests.ps1 ${{ parameters.ServiceDirectory }} ${{ parameters.TestRunTime }} $${{ parameters.EnableRaceDetector }}
exit $LASTEXITCODE
pwsh: true
Expand All @@ -100,6 +104,10 @@ steps:
azurePowerShellVersion: LatestVersion
ScriptType: InlineScript
Inline: |
$account = (Get-AzContext).Account
$env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id
$env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants
eng/scripts/Build_Perf.ps1 ${{ parameters.ServiceDirectory }} $$(UseAzcoreFromMain)
exit $LASTEXITCODE
pwsh: true
Expand Down

0 comments on commit 75d30bb

Please sign in to comment.