upload_to_nexus to return a non-zero exit status 22/8622/2
authorRobert Varga <nite@hq.sk>
Wed, 31 Jan 2018 11:03:28 +0000 (12:03 +0100)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 31 Jan 2018 21:25:25 +0000 (16:25 -0500)
commitdd02080a04f09de71e96d5946cb8e477257fba96
tree20e3f9dcf28a40a627840a4386114dc67f8695e2
parent0cf41e5ec1f93b0fcc25852d4514554bd55b1d5b
upload_to_nexus to return a non-zero exit status

As it turns out Nexus does not produce a http status code on upload
failure and returns back a blank message. This means if we do not
detect a successful status from Nexus we need to exit 1 explicity
to make sure we return to parallel a proper error status code.

JIRA: RELENG-765
Change-Id: Ic221c668bb6cd35befc614159ee8d7220d3f4cfe
Co-authored-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Robert Varga <nite@hq.sk>
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
shell/deploy