mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Redirect output
And fix the copy of the local manifest syntax
This commit is contained in:
parent
1bf0736112
commit
ce4f043def
@ -23,7 +23,7 @@ if ! [ -z "$DEVICE_LIST" ]; then
|
|||||||
|
|
||||||
# Copy local manifests to the appropriate folder in order take them into consideration
|
# Copy local manifests to the appropriate folder in order take them into consideration
|
||||||
echo ">> [$(date)] Copying '$LMANIFEST_DIR/*.xml' to '$SRC_DIR/.repo/local_manifests/'"
|
echo ">> [$(date)] Copying '$LMANIFEST_DIR/*.xml' to '$SRC_DIR/.repo/local_manifests/'"
|
||||||
cp * $LMANIFEST_DIR/*.xml $SRC_DIR/.repo/local_manifests/
|
cp $LMANIFEST_DIR/*.xml $SRC_DIR/.repo/local_manifests/ >&$OUTPUT
|
||||||
|
|
||||||
# Go to "vendor/cm" and reset it's current git status ( remove previous changes ) only if the directory exists
|
# Go to "vendor/cm" and reset it's current git status ( remove previous changes ) only if the directory exists
|
||||||
if [ -d "vendor/cm" ]; then
|
if [ -d "vendor/cm" ]; then
|
||||||
@ -49,7 +49,7 @@ if ! [ -z "$DEVICE_LIST" ]; then
|
|||||||
# Set a custom updater URI if a OTA URL is provided
|
# Set a custom updater URI if a OTA URL is provided
|
||||||
if ! [ -z "$OTA_URL" ]; then
|
if ! [ -z "$OTA_URL" ]; then
|
||||||
echo ">> [$(date)] Adding OTA URL '$OTA_URL' to build.prop"
|
echo ">> [$(date)] Adding OTA URL '$OTA_URL' to build.prop"
|
||||||
sed -i "1s;^;PRODUCT_PROPERTY_OVERRIDES += cm.updater.uri=$OTA_URL\n\n;" vendor/cm/config/common.mk
|
sed -i "1s;^;PRODUCT_PROPERTY_OVERRIDES += cm.updater.uri=$OTA_URL\n\n;" vendor/cm/config/common.mk >&$OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cycle DEVICE_LIST environment variable, to know which one may be executed next
|
# Cycle DEVICE_LIST environment variable, to know which one may be executed next
|
||||||
@ -62,7 +62,7 @@ if ! [ -z "$DEVICE_LIST" ]; then
|
|||||||
# Move produced ZIP files to the main OUT directory
|
# Move produced ZIP files to the main OUT directory
|
||||||
echo ">> [$(date)] Moving build artifacts for $codename to '$ZIP_DIR'"
|
echo ">> [$(date)] Moving build artifacts for $codename to '$ZIP_DIR'"
|
||||||
cd $SRC_DIR
|
cd $SRC_DIR
|
||||||
find out/target/product/$codename -name '*UNOFFICIAL*.zip*' -exec mv {} $ZIP_DIR \;
|
find out/target/product/$codename -name '*UNOFFICIAL*.zip*' -exec mv {} $ZIP_DIR \; >&$OUTPUT
|
||||||
|
|
||||||
# Clean everything, in order to start fresh on next build
|
# Clean everything, in order to start fresh on next build
|
||||||
if [ "$CLEAN_AFTER_BUILD" = true ]; then
|
if [ "$CLEAN_AFTER_BUILD" = true ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user