diff --git dev-support/publish_hbase_website.sh dev-support/publish_hbase_website.sh index ca171d3..b2bf89d 100644 --- dev-support/publish_hbase_website.sh +++ dev-support/publish_hbase_website.sh @@ -88,7 +88,12 @@ if [ $INTERACTIVE ]; then read -p "Build the site? (y/n)" yn case $yn in [Yy]* ) - mvn clean package javadoc:aggregate site site:stage -DskipTests + mvn clean javadoc:aggregate site site:stage -DskipTests + status=$? + if [ $status != 0 ]; then + echo "The website does not build. Aborting." + exit $status + fi ;; [Nn]* ) echo "Not building the site." @@ -96,7 +101,12 @@ if [ $INTERACTIVE ]; then esac else echo "Building the site in auto mode." - mvn clean package javadoc:aggregate site site:stage -DskipTests + mvn clean javadoc:aggregate site site:stage -DskipTests + status=$? + if [ $status != 0 ]; then + echo "The website does not build. Aborting." + exit $status + fi fi