Skip to content

Commit

Permalink
Use the service connection instead of PAT to kick off docs CI runs (A…
Browse files Browse the repository at this point in the history
…zure#29870)

The msdocs-apidrop-connection service connection will replace the
azuresdk-apidrop-devops-queue-build-pat that was being used to kick off
runs.

The docindex run was run against this refs/merge for both testing and
also initial approval of the service connection.
  • Loading branch information
JimSuplizio authored May 31, 2024
1 parent 24429df commit 6f2d42c
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,18 @@ jobs:
ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts
PushArgs: -f

- task: PowerShell@2
- task: AzureCLI@2
displayName: Queue Docs CI build
inputs:
pwsh: true
filePath: eng/common/scripts/Queue-Pipeline.ps1
arguments: >
-Organization "apidrop"
-Project "Content%20CI"
-DefinitionId 3452
-AuthToken "$(azuresdk-apidrop-devops-queue-build-pat)"
-BuildParametersJson '{"params":"{ \"target_repo\": { \"url\": \"https://github.com/MicrosoftDocs/azure-docs-sdk-node\", \"branch\": \"$(DailyDocsBranchName)\", \"folder\": \"./\" }, \"source_repos\": [] }"}'
azureSubscription: msdocs-apidrop-connection
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
$accessToken = az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv
$buildParamJson = '{"params":"{ \"target_repo\": { \"url\": \"https://github.com/MicrosoftDocs/azure-docs-sdk-node\", \"branch\": \"$(DailyDocsBranchName)\", \"folder\": \"./\" }, \"source_repos\": [] }"}'
eng/common/scripts/Queue-Pipeline.ps1 `
-Organization "apidrop" `
-Project "Content%20CI" `
-DefinitionId 3452 `
-BuildParametersJson $buildParamJson `
-BearerToken $accessToken

0 comments on commit 6f2d42c

Please sign in to comment.