* adding jenkins build script to jam-admin

This commit is contained in:
Seth Call 2013-01-16 22:59:59 -06:00
parent 1abc90a5fb
commit 7094b3c345
1 changed files with 29 additions and 0 deletions

29
jenkins Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
DEB_SERVER=http://localhost:9010/apt-i386
echo "starting build..."
./build
if [ "$?" = "0" ]; then
echo "build succeeded"
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
fi