* adding example jenkins to the mix
This commit is contained in:
parent
1ca1e4c884
commit
dd31335e78
2
Gemfile
2
Gemfile
|
|
@ -1,3 +1,5 @@
|
|||
#ruby=1.9.3
|
||||
|
||||
source 'https://rubygems.org'
|
||||
|
||||
workspace = ENV["WORKSPACE"] || "~/workspace"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue