Skip to content

Commit 592ee39

Browse files
author
Sheyla Trudo
committed
fixup! Artifacts
1 parent c65bf35 commit 592ee39

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.pipelines/templates/artifact-storage.steps.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,20 @@ steps:
233233
jq -rc \
234234
--arg RESOURCEID "/subscriptions/$SUBSCRIPTION_ID" \
235235
'.assignableScopes[] = $RESOURCEID')
236+
cat ./azure-container-networking/.pipelines/templates/mi-build-role.json
237+
echo "next"
238+
echo $DEF | jq .
236239
237-
if (( $DEFS_FOUND < 1 )); then
240+
if (( "$DEFS_FOUND" < 1 )); then
238241
az role definition create \
239-
--role-definition "$DEF"
240-
else if (( $DEFS_FOUND > 0 )); then
242+
--role-definition @"$DEF"
243+
else if (( "$DEFS_FOUND" > 0 )); then
241244
az role definition update \
242-
--role-definition "$DEF"
245+
--role-definition @"$DEF"
243246
else
244247
echo >&2 "##[error]There was an error creating/updating the role definition."
245248
exit 1
246249
fi
247-
echo $DEF | jq .
248250
env:
249251
ACNCI_BUILD_RESOURCEGROUP_ID: $(resourcegroups.ACNCI_BUILD_RESOURCEGROUP_ID)
250252

0 commit comments

Comments
 (0)