File tree Expand file tree Collapse file tree 2 files changed +7
-18
lines changed Expand file tree Collapse file tree 2 files changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -86,15 +86,6 @@ steps:
8686
8787# # MI Service Connection
8888
89- - template : get-resources.steps.yaml
90- parameters :
91- resourceType : serviceconnection
92- serviceConnection : $(ACN_TEST_SERVICE_CONNECTION)
93- inputs :
94- serviceConnectionName : $(ACNCI_BUILDUSER_SERVICECONNECTION_NAME)
95- resourceGroupName : $(resourcegroups.ACNCI_BUILD_RESOURCEGROUP)
96- buildTagDefinitionIdKey : $(ACNCI_BUILDTAG_DEFINITIONID)
97- buildTagCreatedByAppIdKey : $(ACNCI_BUILDTAG_CREATEDBYAPPID)
9889# SERVICECONNECTION_PRINCIPALID: ${{ parameters.inputs.serviceConnectionPrincipalId }}
9990# SUBSCRIPTION_ID: ${{ parameters.inputs.subscriptionId }}
10091# SUBSCRIPTION_NAME: ${{ parameters.inputs.subscriptionName }}
@@ -200,6 +191,7 @@ steps:
200191 serviceConnectionName : $(ACNCI_BUILDUSER_SERVICECONNECTION_NAME)
201192 resourceGroupName : $(resourcegroups.ACNCI_BUILD_RESOURCEGROUP)
202193 buildTagDefinitionIdKey : $(ACNCI_BUILDTAG_DEFINITIONID)
194+ buildTagCreatedByAppIdKey : $(ACNCI_BUILDTAG_CREATEDBYAPPID)
203195
204196- task : AzureCLI@2
205197 name : serviceconnection
Original file line number Diff line number Diff line change @@ -186,21 +186,18 @@ steps:
186186 set -eu
187187 [[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
188188
189- R_QUERY="[? name == '$SERVICECONNECTION_NAME' ]"
190- echo $R_QUERY
191-
192- az devops service-endpoint list \
189+ az devops service-endpoint show \
190+ --id "$SERVICECONNECTION_ID" \
193191 --org "https://dev.azure.com/msazure/" \
194192 --project One \
195- --query "$R_QUERY" \
196- -ojson
193+ -ojson --debug
197194 # JSON of Returned Results
198- R_LIST=$(az devops service-endpoint list \
195+ R_LIST=$(az devops service-endpoint show \
196+ --id "$SERVICECONNECTION_ID" \
199197 --org "https://dev.azure.com/msazure/" \
200198 --project One \
201- --query "$R_QUERY" \
202199 -ojson | \
203- jq -rc '. ')
200+ jq -rc '[.] ')
204201 DEFS_FOUND=$(echo "$R_LIST" | jq length)
205202 echo "$R_LIST" | jq '.'
206203
You can’t perform that action at this time.
0 commit comments