Skip to content
Snippets Groups Projects
Commit 8334731f authored by Pete Peterson's avatar Pete Peterson
Browse files

Attempting to do a better return status

parent 38845ed6
No related merge requests found
......@@ -104,10 +104,12 @@ if [[ ${JOB_NAME} == *coverity_build_and_submit* ]]; then
status=$(curl --form token=$COVERITY_TOKEN --form email=mantidproject@gmail.com \
--form file=@mantid.tgz --form version=$GIT_COMMIT \
https://scan.coverity.com/builds?project=mantidproject%2Fmantid)
if [[ ${status} ]]; then
exit 1
else
status=$(echo ${status} | sed -e 's/^ *//' -e 's/ *$//')
if [[ -z $status ]]; then
exit 0
else
echo "$status"
exit 1
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment