We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2a04dd commit ad7d843Copy full SHA for ad7d843
.pipelines/templates/artifact-storage.steps.yaml
@@ -32,15 +32,16 @@ steps:
32
[[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
33
34
set -x
35
+ pwd
36
DEFS_FOUND=$(az role definition list --name "$ACNCI_BUILDUSER_ROLE_NAME" --custom-role-only -ojson | jq length)
37
- DEF=$(cat ./mi-build-role.json | jq -rc '.')
38
- if [[ $DEFS_FOUND < 1 ]]; then
+ DEF=$(cat ./templates/mi-build-role.json | jq -rc '.')
39
+ if (( $DEFS_FOUND < 1 )); then
40
az role definition create \
- --role-definition '"'
41
+ --role-definition "$DEF"
42
else
43
az role definition update \
- --role-definition "$(cat./mi-build-role.json)"
44
45
fi
46
47
0 commit comments