Commit 0a98e764 authored by David Mondou's avatar David Mondou
Browse files

Update build_script, commented out vesta-100 references. Add retry

parent e40e4c8a
Pipeline #7179 passed with stages
in 208 minutes and 54 seconds
......@@ -35,6 +35,9 @@ MACHINE=vesta-300 DISTRO=poky source setup-environment build
echo ****************** START vesta-300 developer build ******************
bitbake vesta-image-developer
#Retry once
if [ $? -ne 0 ]; then bitbake vesta-image-developer; fi
if [ $? -ne 0 ]; then echo vesta-300 developer build FAILED; exit 1; fi
echo ****************** START vesta-300 minimal build ******************
......@@ -53,16 +56,16 @@ bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-200 minimal build FAILED; exit 1; fi
echo ****************** START vesta-100 developer build ******************
sed -i '/MACHINE/c\MACHINE ??= "vesta-100"' conf/local.conf
bitbake vesta-image-developer
#echo ****************** START vesta-100 developer build ******************
#sed -i '/MACHINE/c\MACHINE ??= "vesta-100"' conf/local.conf
#bitbake vesta-image-developer
if [ $? -ne 0 ]; then echo vesta-100 developer build FAILED; exit 1; fi
#if [ $? -ne 0 ]; then echo vesta-100 developer build FAILED; exit 1; fi
echo ****************** START vesta-100 minimal build ******************
bitbake vesta-image-minimal
#echo ****************** START vesta-100 minimal build ******************
#bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-100 minimal build FAILED; exit 1; fi
#if [ $? -ne 0 ]; then echo vesta-100 minimal build FAILED; exit 1; fi
#check the exit code again. We were running as user chewbacca so if
#an exit 1 was executed it will exit user chewbacca and back into root.
......@@ -82,8 +85,8 @@ rm -rf /artifacts/*
cd /home/chewbacca/vesta-gateway-bsp-master/build/tmp/deploy/images/
#copy vesta-100 files
cp vesta-100/{u-boot-vesta-100.imx,zImage,zImage-vesta-100.dtb} /artifacts
cp vesta-100/{vesta-image-minimal-vesta-100.tar.bz2,vesta-image-developer-vesta-100.tar.bz2} /artifacts
#cp vesta-100/{u-boot-vesta-100.imx,zImage,zImage-vesta-100.dtb} /artifacts
#cp vesta-100/{vesta-image-minimal-vesta-100.tar.bz2,vesta-image-developer-vesta-100.tar.bz2} /artifacts
#copy vesta-200 files
cp vesta-200/{u-boot-vesta-200.imx,zImage,zImage-vesta-200.dtb} /artifacts
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment