* adding example jenkins to the mix

This commit is contained in:
Seth Call 2012-11-18 00:03:00 -06:00
parent 1ca1e4c884
commit dd31335e78
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#ruby=1.9.3
source 'https://rubygems.org'
workspace = ENV["WORKSPACE"] || "~/workspace"

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/jampb"
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