mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-16 18:13:06 +00:00
AAE-51793 Log attempt number around npm pack retries (#12236)
This commit is contained in:
@@ -42,10 +42,12 @@ npm_pack_version() {
|
|||||||
local spec=$1
|
local spec=$1
|
||||||
local attempt
|
local attempt
|
||||||
for attempt in $(seq 1 "$NPM_RETRIES"); do
|
for attempt in $(seq 1 "$NPM_RETRIES"); do
|
||||||
|
echo "📦 npm pack attempt $attempt/$NPM_RETRIES: $spec"
|
||||||
if npm pack "$spec"; then
|
if npm pack "$spec"; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [ "$attempt" -lt "$NPM_RETRIES" ]; then
|
if [ "$attempt" -lt "$NPM_RETRIES" ]; then
|
||||||
|
echo "⏳ Attempt $attempt/$NPM_RETRIES failed, retrying in ${NPM_RETRY_DELAY}s..."
|
||||||
sleep "$NPM_RETRY_DELAY"
|
sleep "$NPM_RETRY_DELAY"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user