Skip to content

Commit ad7d843

Browse files
author
Sheyla Trudo
committed
fixup! Artifacts
1 parent c2a04dd commit ad7d843

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ steps:
3232
[[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
3333
3434
set -x
35+
pwd
3536
DEFS_FOUND=$(az role definition list --name "$ACNCI_BUILDUSER_ROLE_NAME" --custom-role-only -ojson | jq length)
3637
37-
DEF=$(cat ./mi-build-role.json | jq -rc '.')
38-
if [[ $DEFS_FOUND < 1 ]]; then
38+
DEF=$(cat ./templates/mi-build-role.json | jq -rc '.')
39+
if (( $DEFS_FOUND < 1 )); then
3940
az role definition create \
40-
--role-definition '"'
41+
--role-definition "$DEF"
4142
else
4243
az role definition update \
43-
--role-definition "$(cat./mi-build-role.json)"
44+
--role-definition "$DEF"
4445
fi
4546
4647

0 commit comments

Comments
 (0)