jam-cloud/db/jenkins

26 lines
447 B
Plaintext
Raw Normal View History

2012-11-18 05:21:14 +00:00
#!/bin/bash
GEM_SERVER=http://localhost:9000/gems
DEB_SERVER=http://localhost:9010/apt-`uname -p`
2012-11-18 05:21:14 +00:00
echo "starting build..."
./build
if [ "$?" = "0" ]; then
echo "build succeeded"
2014-01-31 20:25:17 +00:00
echo "publishing gem"
pushd "target/ruby_package"
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
2014-01-31 20:25:17 +00:00
if [ "$?" != "0" ]; then
echo "publish failed"
exit 1
fi
2014-01-31 20:25:17 +00:00
popd
echo "done publishing gems"
2012-11-18 05:21:14 +00:00
else
echo "build failed"
exit 1
2012-11-18 05:21:14 +00:00
fi