Skip to content

Commit dd6c6f5

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,15 @@ steps:
203203
scriptLocation: inlineScript
204204
addSpnToEnvironment: true
205205
inlineScript: |
206-
set -e
207-
[[ -n $SYSTEM_DEBUG ]] && [[ $SYSTEM_DEBUG =~ $IS_TRUE ]] && set -x || set +x
208-
206+
set -x
207+
echo $SPNOBJECTID
209208
UPDATE_IDENTITY=$(echo "$ACNCI_STORAGEACCOUNT" | jq -r '.identity')
210-
[[ -z $UPDATE_IDENTITY ]] && \
209+
if [[ -z $UPDATE_IDENTITY ]]; then
210+
SP_ID=$(az ad sp show --id "$(az account show --query user.name -o tsv)" --query id -o tsv)
211211
az storage account update --user-identity-id "$servicePrincipalId" --ids "$ACNCI_STORAGEACCOUNT_ID"
212+
fi
212213
env:
214+
SPNOBJECTID: $(SPNOBJECTID)
213215
ACNCI_STORAGEACCOUNT_ID: $(artifact_storage.ACNCI_STORAGEACCOUNT_ID)
214216

215217
- task: AzureCLI@2

0 commit comments

Comments
 (0)