Skip to content

The Unified and Autonomous Development Platform

fail fast in build.sh

Robin Shenc4fd345eb6a6
diff --git a/server-product/build/build.sh b/server-product/build/build.sh
index 9aea277568..887b2ac5f8 100755
--- a/server-product/build/build.sh
+++ b/server-product/build/build.sh
@@ -1,4 +1,5 @@
-#!/bin/sh
+#!/bin/bash
+set -e
buildVersion=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout -f ../../pom.xml)
mvn clean package -f ../../pom.xml