* tested version of jenkins script; should work this time
This commit is contained in:
parent
bac868558c
commit
6943ec207d
6
jenkins
6
jenkins
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
GEM_SERVER=http://localhost:9000/gems
|
||||
|
||||
echo "starting build..."
|
||||
./build
|
||||
|
||||
|
|
@ -7,10 +9,10 @@ if [ "$?" = "0" ]; then
|
|||
echo "build succeeded"
|
||||
echo "publishing gem"
|
||||
pushd "target/ruby_package"
|
||||
curl -f -T *.gem http://localhost:9000/gems
|
||||
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
|
||||
|
||||
if [ "$?" != "0" ]; then
|
||||
"publish failed"
|
||||
echo "publish failed"
|
||||
exit 1
|
||||
fi
|
||||
popd
|
||||
|
|
|
|||
Loading…
Reference in New Issue