提交 aa57f0fc 编写于 作者: Y Yu Yang

Cat error log if cpack failed

上级 6cde6fc1
...@@ -125,9 +125,15 @@ cat <<EOF ...@@ -125,9 +125,15 @@ cat <<EOF
Generating .deb package ... Generating .deb package ...
======================================== ========================================
EOF EOF
set +e
cpack -D CPACK_GENERATOR='DEB' -j `nproc` .. cpack -D CPACK_GENERATOR='DEB' -j `nproc` ..
err_code=$?
if [ ${err_code} -ne 0 ]; then
# cat error logs if cpack failed.
cat /paddle/build/_CPack_Packages/Linux/DEB/PreinstallOutput.log
exit ${err_code}
fi
set -e
cat <<EOF cat <<EOF
======================================== ========================================
Generate /paddle/build/Dockerfile ... Generate /paddle/build/Dockerfile ...
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册