mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7522 : Update package.sh to exit rpm with return 1, if there are failure in build
This commit is contained in:
parent
8a13f44b44
commit
d315a5e2c9
|
|
@ -76,8 +76,14 @@ function packaging() {
|
|||
|
||||
(cd $RPMDIR; rpmbuild --define "_topdir $RPMDIR" "${DEFVER}" "${DEFREL}" ${DEFPRE+"${DEFPRE}"} ${DEFOSSNOSS+"$DEFOSSNOSS"} "${DOS}" -bb SPECS/cloud.spec)
|
||||
|
||||
echo "Done"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "RPM Build Failed "
|
||||
exit 1
|
||||
else
|
||||
echo "RPM Build Done"
|
||||
fi
|
||||
exit
|
||||
|
||||
}
|
||||
|
||||
if [ $# -lt 1 ] ; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue