1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Add RELEASE_TYPE

This commit is contained in:
Nicola Corna 2017-05-30 21:43:54 +02:00
parent f170ae7a6a
commit 40847c7763
2 changed files with 7 additions and 0 deletions

@ -28,6 +28,9 @@ ENV BRANCH_NAME 'cm-14.1'
# eg. DEVICE_LIST=hammerhead,bullhead,angler # eg. DEVICE_LIST=hammerhead,bullhead,angler
ENV DEVICE_LIST '' ENV DEVICE_LIST ''
# Release type string
ENV RELEASE_TYPE 'UNOFFICIAL'
# OTA URL that will be used inside CMUpdater # OTA URL that will be used inside CMUpdater
# Use this in combination with LineageOTA to make sure your device can auto-update itself from this buildbot # Use this in combination with LineageOTA to make sure your device can auto-update itself from this buildbot
ENV OTA_URL '' ENV OTA_URL ''

@ -70,6 +70,10 @@ if ! [ -z "$DEVICE_LIST" ]; then
echo ">> [$(date)] Preparing build environment" >> $DOCKER_LOG echo ">> [$(date)] Preparing build environment" >> $DOCKER_LOG
source build/envsetup.sh 2>&1 >&$DEBUG_LOG source build/envsetup.sh 2>&1 >&$DEBUG_LOG
echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type" >> $DOCKER_LOG
sed -i '/#.*Filter out random types/d' vendor/cm/config/common.mk
sed -i '/$(filter .*$(CM_BUILDTYPE)/,+3d' vendor/cm/config/common.mk
# 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" >> $DOCKER_LOG echo ">> [$(date)] Adding OTA URL '$OTA_URL' to build.prop" >> $DOCKER_LOG