* publish deb for jam-web after jenkins build

This commit is contained in:
Seth Call 2013-01-06 20:03:14 -06:00
parent b5a031592e
commit 3c2e1b17de
1 changed files with 14 additions and 2 deletions

16
jenkins
View File

@ -5,8 +5,20 @@ echo "starting build..."
if [ "$?" = "0" ]; then
echo "build succeeded"
echo "TODO: build debian package"
if [ ! -z "$PACKAGE" ]; then
echo "publishing ubuntu package (.deb)"
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