File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ steps :
2
+ - task : AzureCLI@2
3
+ inputs :
4
+ azureSubscription : ARM - WIF - manual
5
+ scriptType : pscore
6
+ scriptLocation : inlineScript
7
+ inlineScript : |
8
+ az account set --subscription $(SUBSCRIPTION_ID)
9
+ $accessToken = az account get-access-token --resource $(RESOURCE_ID) --query accessToken --output tsv
10
+ echo "##vso[task.setvariable variable=ACCESS_TOKEN;issecret=true]$accessToken"
11
+ displayName : Get Access Token
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ extends:
111
111
nugetMultiFeedWarnLevel : none
112
112
timeoutInMinutes : 300
113
113
steps :
114
+ - template : /.azure-pipelines/get-pat.yml@self
114
115
- bash : |
115
116
cd ./.azure-pipelines/scripts/
116
117
npm install axios minimist
@@ -123,7 +124,7 @@ extends:
123
124
node ./run-and-verify.js \
124
125
--projectUrl "$(CANARY_PROJECT_URL)" \
125
126
--pipelineId "$(CANARY_PIPELINE_ID)" \
126
- --token "$(CANARY_PAT )" \
127
+ --token "$(ACCESS_TOKEN )" \
127
128
--templateParameters "{ \"branch\": \"${branch}\" }"
128
129
displayName: Test Proxy Agent
129
130
You can’t perform that action at this time.
0 commit comments