aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/atv2
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2015-02-19 14:36:15 +0100
committerMemphiz <memphis@machzwo.de>2015-02-19 14:36:15 +0100
commitc13807a7291d159a224a04664078bc8f855da42d (patch)
tree9640ef142c7b0f161a81ace7ff96400317316eaf /tools/buildsteps/atv2
parenta4d9823018dadeeeffb6f10f12663bedb7a0f8b6 (diff)
[jenkins/addons] - fix error detection during addons build
Diffstat (limited to 'tools/buildsteps/atv2')
-rwxr-xr-xtools/buildsteps/atv2/make-binary-addons17
1 files changed, 9 insertions, 8 deletions
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