File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments