Detect if staging has failed 68/60568/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 19 Jul 2017 14:57:10 +0000 (10:57 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 19 Jul 2017 14:57:12 +0000 (10:57 -0400)
commit3e0433492ba64a4bad973384da83ca0bff54a526
tree96a47787b8882e2a25a164eab2f014029973fe66
parentc7f29b1676ba858ba0590e2956b5c2daa8d349d9
Detect if staging has failed

The mvn command always exits 0 when using the staging plugin to stage a
Nexus repository. Due to this when failure occurs we do not currently
detect it. This patch parses the staging log file for any lines starting
with [ERROR] (typical of mvn errors) and exits the script with a failure
code if detected to make Jenkins fail the build.

Issue: RELENG-218
Change-Id: I5ddc56d88ca23baada1a8044ef9dc26345a583f9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/include-raw-autorelease-maven-deploy.sh