jam-cloud/jenkins

24 lines
395 B
Plaintext
Raw Normal View History

2012-11-18 05:21:14 +00:00
#!/bin/bash
echo "starting build..."
./build
if [ "$?" = "0" ]; then
echo "build succeeded"
echo "publishing gem"
pushd "target/ruby_package"
2012-11-18 05:26:42 +00:00
curl -f -T *.gem http://localhost:9000/gems
if [ "$?" != "0" ]; then
"publish failed"
exit 1
fi
2012-11-18 05:21:14 +00:00
popd
echo "done publishing gems"
else
echo "build failed"
exit 1
2012-11-18 05:21:14 +00:00
fi