* VRFS-1016

This commit is contained in:
Seth Call 2014-01-31 14:25:17 -06:00
parent d5478dc926
commit 6806d6f0d3
6 changed files with 11 additions and 86 deletions

View File

@ -7,24 +7,6 @@ echo "starting build..."
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo "build succeeded" echo "build succeeded"
if [ ! -z "$PACKAGE" ]; then
if [[ "$GIT_BRANCH" == *develop* || "$GIT_BRANCH" == *master* ]]; 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"
else
echo "Skipping publish since branch is neither master or develop..."
fi
fi
else else
echo "build failed" echo "build failed"
exit 1 exit 1

View File

@ -8,37 +8,17 @@ echo "starting build..."
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo "build succeeded" echo "build succeeded"
if [[ "$GIT_BRANCH" == *develop* || "$GIT_BRANCH" == *master* ]]; then echo "publishing gem"
echo "publishing gem" pushd "target/ruby_package"
pushd "target/ruby_package" find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "publish failed" echo "publish failed"
exit 1 exit 1
fi fi
popd popd
echo "done publishing gems" echo "done publishing gems"
if [ ! -z "$PACKAGE" ]; then
echo "publishing ubuntu packages (.deb)"
for f in `find target -name '*.deb'`; do
DEBNAME=`basename $f`
DEBPATH="$f"
echo "publishing $DEBPATH to deb server"
curl -f -T $DEBPATH $DEB_SERVER/$DEBNAME
if [ "$?" != "0" ]; then
echo "deb publish failed of $DEBPATH"
exit 1
fi
done
echo "done publishing debs"
fi
else
echo "Skipping publish since branch is neither master or develop..."
fi
else else
echo "build failed" echo "build failed"
exit 1 exit 1

View File

@ -10,7 +10,7 @@ if [ "$?" = "0" ]; then
echo "publishing gem" echo "publishing gem"
pushd "target/ruby/jampb" pushd "target/ruby/jampb"
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \; find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "publish failed" echo "publish failed"
exit 1 exit 1

View File

@ -26,7 +26,7 @@ EOF
echo "publishing gem" echo "publishing gem"
curl -f -T $GEMNAME $GEM_SERVER/$GEMNAME curl -f -T $GEMNAME $GEM_SERVER/$GEMNAME
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "publish failed" echo "publish failed"
exit 1 exit 1

View File

@ -7,24 +7,6 @@ echo "starting build..."
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo "build succeeded" echo "build succeeded"
if [ ! -z "$PACKAGE" ]; then
if [[ "$GIT_BRANCH" == *develop* || "$GIT_BRANCH" == *master* ]]; 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"
else
echo "Skipping publish since branch is neither master or develop..."
fi
fi
else else
echo "build failed" echo "build failed"
exit 1 exit 1

View File

@ -9,7 +9,6 @@ echo "starting build..."
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
echo "build succeeded" echo "build succeeded"
if [[ "$GIT_BRANCH" == *develop* || "$GIT_BRANCH" == *master* ]]; then
# generate gem version based on jenkins build number # generate gem version based on jenkins build number
if [ -z $BUILD_NUMBER ]; then if [ -z $BUILD_NUMBER ]; then
@ -35,24 +34,6 @@ EOF
exit 1 exit 1
fi fi
echo "done publishing gem" echo "done publishing gem"
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 "Skipping publish since branch is neither master or develop..."
fi
else else
echo "build failed" echo "build failed"
exit 1 exit 1