show (cat) the full log instead of the tail
In the Open CI enviroment, if the package builds fails, the jenkins
artefacts are not archived thus there is no way to view the full
log ($log_path); under the latter scenario, it is better to show the
full build log instead of the tail.
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I9813c7345d30f4c21820f5b2679b0926f4796997
diff --git a/script/build_package.sh b/script/build_package.sh
index 9bdf736..6a5fe6e 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -275,10 +275,10 @@
fi
echo
- echo "Build failed! Tail of build log below:"
+ echo "Build failed! Full build log below:"
echo "[...]"
echo
- tail -n15 "$build_log"
+ cat "$build_log"
echo
echo "See $log_path for full output"
echo