Code Review
/
ci-management.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4cb9b26
)
Make the script fail build if mvn deploy fails
39/39/1
author
Andrew Grimberg
<
[email protected]
>
Thu, 10 Dec 2015 18:18:01 +0000
(10:18 -0800)
committer
Andrew Grimberg
<
[email protected]
>
Thu, 10 Dec 2015 18:18:01 +0000
(10:18 -0800)
The script wasn't picking up a failed mvn deploy failure. This changes
it so that we need an definite exit code of 0 to not fail the build.
Change-Id: I094bf1e149f779061223496a0b2bc347a3705b5b
Signed-off-by: Andrew Grimberg <
[email protected]
>
jjb/vpp/include-raw-vpp-maven-push.sh
patch
|
blob
|
history
diff --git
a/jjb/vpp/include-raw-vpp-maven-push.sh
b/jjb/vpp/include-raw-vpp-maven-push.sh
index
3a72bd3
..
ad6c525
100644
(file)
--- a/
jjb/vpp/include-raw-vpp-maven-push.sh
+++ b/
jjb/vpp/include-raw-vpp-maven-push.sh
@@
-39,7
+39,7
@@
function push_file ()
-gs $GLOBAL_SETTINGS_FILE -s $SETTINGS_FILE
# make sure the script bombs if we fail an upload
- if [
! "$?"
]; then
+ if [
"$?" != '0'
]; then
echo "ERROR: There was an error with the upload"
exit 1
fi