提交 7f9ad0fc 编写于 作者: X Xin Zhang 提交者: Larry Hamel

quiet build for debian package

-- only output verbose debian build logging upon failure

[#156761964]
Co-authored-by: NLarry Hamel <lhamel@pivotal.io>
Co-authored-by: NXin Zhang <xzhang@pivotal.io>
上级 9c4c7158
......@@ -22,10 +22,17 @@ pushd ${SRC_DIR}
dch --create --package $PACKAGE -v $VERSION "$MESSAGE"
popd
# the image should already have all the debian packages
# yes | mk-build-deps -i ${SRC_DIR}/debian/control
pushd ${SRC_DIR}
DEB_BUILD_OPTIONS='nocheck parallel=6' debuild -us -uc -b | tee debuild.log
set +e
DEB_BUILD_OPTIONS='nocheck parallel=6' debuild -us -uc -b > debuild.log
result=$?
set -e
popd
if [ ${result} -ne 0 ]; then
echo "***********************"
echo "***********************"
echo "Failed debuild; log is:"
cat debuild.log
exit ${result}
fi
cp greenplum-db*.deb deb_package_ubuntu16/greenplum-db.deb
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册