Fail main maven build if java maven build fails
Java maven sub build could fail and main maven build still succeed because of the shell script in between. Pass the maven exit code back Change-Id: I4df4ee7d782db21c89c49b0ee0a4741cbfa97edb
This commit is contained in:
parent
022d1a5a40
commit
92254990bc
@ -14,9 +14,11 @@ shift
|
||||
|
||||
# Invoke the maven 3 on the real pom.xml
|
||||
( cd java; ${MVN} $* )
|
||||
RC=$?
|
||||
|
||||
# Copy the jars where the publisher will find them
|
||||
mkdir -p target
|
||||
cp java/*/target/*.jar target
|
||||
|
||||
rm -fr apache-maven-3.2.1*
|
||||
exit $RC
|
||||
|
Loading…
x
Reference in New Issue
Block a user