summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2015-08-26 18:38:22 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2015-08-26 18:49:45 +0530
commit0131913e27018e74bcba5deefa4d93ed6edcee5e (patch)
tree38de5894efce6a04c8b152e8badf8285037e42ab
parentabb029792aa8accf12fbcf111404ce8ef42239c9 (diff)
Capture build logs into a file
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 9383389..d1edc1b 100755
--- a/build.sh
+++ b/build.sh
@@ -97,7 +97,6 @@ if [ $? -ne 0 ]; then
fi
fi
-set -xe
# Configure ccache
USE_CCACHE=1
@@ -143,7 +142,7 @@ rm -rf out/host/
MAKE_START=$(date +%s.%N)
source build/envsetup.sh
lunch $LUNCH_TARGET
-make -j${jcpu_count} $MAKE_TARGETS 2>&1 | tee logs.txt
+make -j${jcpu_count} $MAKE_TARGETS 2>&1 > $WORKSPACE/build-logs.txt
if [ $? -ne 0 ]; then
echo "Error: *** make failed"
@@ -152,6 +151,8 @@ if [ $? -ne 0 ]; then
ssh-keyscan -t rsa -p 29418 dev-private-review.linaro.org >> ~/.ssh/known_hosts
ssh -p $GERRIT_PORT linaro-big-little-switcher-bot@$GERRIT_HOST gerrit review -p $GERRIT_PROJECT -m '"make target failed"' --code-review -1 $GERRIT_CHANGE_NUMBER,$GERRIT_PATCHSET_NUMBER
fi
+ cat $WORKSPACE/build-logs.txt
+ exit -1
fi
MAKE_END=$(date +%s.%N)