diff --git a/eng/pipelines/docindex.yml b/eng/pipelines/docindex.yml index 92213dc69a6d..94beaf7ff9e9 100644 --- a/eng/pipelines/docindex.yml +++ b/eng/pipelines/docindex.yml @@ -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