jam-cloud/pb/jenkins

26 lines
442 B
Plaintext
Raw Normal View History

2012-11-18 06:03:00 +00:00
#!/bin/bash
GEM_SERVER=http://localhost:9000/gems
echo "starting build..."
./build
if [ "$?" = "0" ]; then
echo "build succeeded"
echo "publishing gem"
pushd "target/ruby/jampb"
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
2014-01-31 20:25:17 +00:00
2012-11-18 06:03:00 +00:00
if [ "$?" != "0" ]; then
echo "publish failed"
exit 1
fi
popd
echo "done publishing gems"
else
echo "build failed"
exit 1
fi