Skip to content

Commit

Permalink
Attempting to do a better return status
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Dec 8, 2014
1 parent 38845ed commit 8334731
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Code/Mantid/Build/Jenkins/buildscript
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8334731

Please sign in to comment.