File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,18 @@ jobs:
159
159
ScriptDirectory : $(Build.SourcesDirectory)/eng/common/scripts
160
160
PushArgs : -f
161
161
162
- - task : PowerShell @2
162
+ - task : AzureCLI @2
163
163
displayName : Queue Docs CI build
164
164
inputs :
165
- pwsh : true
166
- filePath : eng/common/scripts/Queue-Pipeline.ps1
167
- arguments : >
168
- -Organization "apidrop"
169
- -Project "Content%20CI"
170
- -DefinitionId 5533
171
- -AuthToken "$(azuresdk-apidrop-devops-queue-build-pat)"
172
- -BuildParametersJson (@{ params = (Get-Content ./eng/dailydocsconfig.json -Raw) -replace '%%DailyDocsBranchName%%', "$(DailyDocsBranchName)" } | ConvertTo-Json)
165
+ azureSubscription : msdocs-apidrop-connection
166
+ scriptType : pscore
167
+ scriptLocation : inlineScript
168
+ inlineScript : |
169
+ $accessToken = az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv
170
+ $buildParamJson = (@{ params = (Get-Content ./eng/dailydocsconfig.json -Raw) -replace '%%DailyDocsBranchName%%', "$(DailyDocsBranchName)" } | ConvertTo-Json)
171
+ eng/common/scripts/Queue-Pipeline.ps1 `
172
+ -Organization "apidrop" `
173
+ -Project "Content%20CI" `
174
+ -DefinitionId 5533 `
175
+ -BuildParametersJson $buildParamJson `
176
+ -BearerToken $accessToken
You can’t perform that action at this time.
0 commit comments