* tested version of jenkins script; should work this time

This commit is contained in:
Seth Call 2012-11-17 23:38:46 -06:00
parent bac868558c
commit 6943ec207d
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
GEM_SERVER=http://localhost:9000/gems
echo "starting build..."
./build
@ -7,10 +9,10 @@ if [ "$?" = "0" ]; then
echo "build succeeded"
echo "publishing gem"
pushd "target/ruby_package"
curl -f -T *.gem http://localhost:9000/gems
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
if [ "$?" != "0" ]; then
"publish failed"
echo "publish failed"
exit 1
fi
popd