Skip to content

Commit edf8897

Browse files
author
Sheyla Trudo
committed
fixup! User Service Connections
1 parent 2427a59 commit edf8897

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.pipelines/templates/get-resources.steps.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,24 @@ steps:
187187
[[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
188188
189189
R_QUERY="[? name == '$SERVICECONNECTION_NAME' ]"
190+
echo $R_QUERY
191+
192+
az devops service-endpoint list \
193+
--org "https://dev.azure.com/msazure/" \
194+
--project One \
195+
--query "$R_QUERY" \
196+
-ojson
190197
# JSON of Returned Results
191198
R_LIST=$(az devops service-endpoint list \
192199
--org "https://dev.azure.com/msazure/" \
193200
--project One \
194201
--query "$R_QUERY" \
195202
-ojson | \
196203
jq -rc '.')
197-
DEF=$(echo "$R_LIST" | jq -rc .[0])
198204
DEFS_FOUND=$(echo "$R_LIST" | jq length)
199-
echo "$DEF" | jq '.'
205+
echo "$R_LIST" | jq '.'
200206
201207
# Export the available storage account list..
202208
# uses custom variable naming if specified.
203-
echo >&2 "##vso[task.setvariable variable=${VAR_NAME};]$DEF"
209+
echo >&2 "##vso[task.setvariable variable=${VAR_NAME};]$R_LIST"
204210
echo >&2 "##vso[task.setvariable variable=${VAR_NAME}_LENGTH;]$DEFS_FOUND"

0 commit comments

Comments
 (0)