* jenkins script fails if curl push fails

This commit is contained in:
Seth Call 2012-11-17 23:23:58 -06:00
parent b94e20ffad
commit 5c17f89a24
1 changed files with 6 additions and 0 deletions

View File

@ -8,10 +8,16 @@ if [ "$?" = "0" ]; then
echo "publishing gem"
pushd "target/ruby_package"
curl -T *.gem http://localhost:9000/gems
if [ "$?" != "0" ]; then
"publish failed"
exit 1
fi
popd
echo "done publishing gems"
else
echo "build failed"
exit 1
fi