Merge branch 'master' of bitbucket.org:jamkazam/jam-db

This commit is contained in:
Jonathon Wilson 2012-11-18 10:43:54 -06:00
commit 1c8eee12f5
1 changed files with 25 additions and 0 deletions

25
jenkins Executable file
View File

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