Skip to content

Commit cee740a

Browse files
author
Sheyla Trudo
committed
fixup! Artifacts
1 parent dd6c6f5 commit cee740a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,14 @@ steps:
206206
set -x
207207
echo $SPNOBJECTID
208208
UPDATE_IDENTITY=$(echo "$ACNCI_STORAGEACCOUNT" | jq -r '.identity')
209-
if [[ -z $UPDATE_IDENTITY ]]; then
209+
if [[ -z $UPDATE_IDENTITY ]] || \
210+
[[ $UPDATE_IDENTITY =~ null ]]; then
210211
SP_ID=$(az ad sp show --id "$(az account show --query user.name -o tsv)" --query id -o tsv)
211212
az storage account update --user-identity-id "$servicePrincipalId" --ids "$ACNCI_STORAGEACCOUNT_ID"
213+
else
214+
echo >&2 "Storage account identity set."
212215
fi
213216
env:
214-
SPNOBJECTID: $(SPNOBJECTID)
215217
ACNCI_STORAGEACCOUNT_ID: $(artifact_storage.ACNCI_STORAGEACCOUNT_ID)
216218

217219
- task: AzureCLI@2

0 commit comments

Comments
 (0)