From c13807a7291d159a224a04664078bc8f855da42d Mon Sep 17 00:00:00 2001 From: Memphiz Date: Thu, 19 Feb 2015 14:36:15 +0100 Subject: [jenkins/addons] - fix error detection during addons build --- tools/buildsteps/atv2/make-binary-addons | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'tools/buildsteps/atv2') diff --git a/tools/buildsteps/atv2/make-binary-addons b/tools/buildsteps/atv2/make-binary-addons index fd95a8729c..639c4a2ff2 100755 --- a/tools/buildsteps/atv2/make-binary-addons +++ b/tools/buildsteps/atv2/make-binary-addons @@ -4,17 +4,18 @@ XBMC_PLATFORM_DIR=atv2 . $WORKSPACE/tools/buildsteps/$XBMC_PLATFORM_DIR/make-native-depends -for addon in $BINARY_ADDONS -do - ALL_BINARY_ADDONS_BUILT="1" - #only build binary addons if something in the addons metadata changed - if [ "$(pathChanged $WORKSPACE/project/cmake)" == "1" ] - then +ALL_BINARY_ADDONS_BUILT="1" +#only build binary addons if something in the addons metadata changed +if [ "$(pathChanged $WORKSPACE/project/cmake)" == "1" ] +then + for addon in $BINARY_ADDONS + do echo "building $addon" git clean -xffd $WORKSPACE/$BINARY_ADDONS_ROOT/$addon cd $WORKSPACE/$BINARY_ADDONS_ROOT/$addon;make -j $BUILDTHREADS || ALL_BINARY_ADDONS_BUILT="0" - fi -done + done +fi + if [ "$ALL_BINARY_ADDONS_BUILT" == "1" ] then tagSuccessFulBuild $WORKSPACE/project/cmake -- cgit v1.2.3