diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2015-08-26 18:38:22 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2015-08-26 18:49:45 +0530 |
commit | 0131913e27018e74bcba5deefa4d93ed6edcee5e (patch) | |
tree | 38de5894efce6a04c8b152e8badf8285037e42ab | |
parent | abb029792aa8accf12fbcf111404ce8ef42239c9 (diff) |
Capture build logs into a file
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-x | build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |