* trying to publish websocket deb to local jenkins server

This commit is contained in:
Seth Call 2013-01-05 23:12:23 -06:00
parent 22e83eb1d2
commit 516a3dd6c0
1 changed files with 19 additions and 2 deletions

21
jenkins
View File

@ -28,10 +28,27 @@ EOF
curl -f -T $GEMNAME $GEM_SERVER/$GEMNAME
if [ "$?" != "0" ]; then
echo "publish failed"
echo "gem publish failed"
exit 1
fi
echo "done publishing gems"
echo "done publishing gem"
if [ ! -z "$PACKAGE" ]; then
echo "publishing ubuntu package (.deb)"
DEB_SERVER=http://localhost:9000/apt-i386
DEBPATH=`find target/deb -name *.deb`
DEBNAME=`basename $DEBPATH`
curl -f -T $DEBPATH $DEB_SERVER/$DEBNAME
if [ "$?" != "0" ]; then
echo "deb publish failed"
exit 1
fi
echo "done publishing deb"
fi
else
echo "build failed"
exit 1