|
|
@ -61,12 +61,20 @@ function pack_artifacts() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$PACK_INDIVIDUALLY" ]; then
|
|
|
|
if [ -n "$UNPACKED" ]; then
|
|
|
|
# Pack all of the artifacts at once.
|
|
|
|
# Copy the artifacts to be uploaded unpacked.
|
|
|
|
pack_artifacts build/bundle
|
|
|
|
for ARTIFACT in build/bundle/*; do
|
|
|
|
else
|
|
|
|
FILENAME=$(basename "$ARTIFACT")
|
|
|
|
|
|
|
|
EXTENSION="${FILENAME##*.}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mv "$ARTIFACT" "artifacts/$REV_NAME.$EXTENSION"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
elif [ -n "$PACK_INDIVIDUALLY" ]; then
|
|
|
|
# Pack and upload the artifacts one-by-one.
|
|
|
|
# Pack and upload the artifacts one-by-one.
|
|
|
|
for ARTIFACT in build/bundle/*; do
|
|
|
|
for ARTIFACT in build/bundle/*; do
|
|
|
|
pack_artifacts "$ARTIFACT"
|
|
|
|
pack_artifacts "$ARTIFACT"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# Pack all of the artifacts into a single archive.
|
|
|
|
|
|
|
|
pack_artifacts build/bundle
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|