mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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…
x
Reference in New Issue
Block a user