* VRFS-1016
This commit is contained in:
parent
d5478dc926
commit
6806d6f0d3
|
|
@ -7,24 +7,6 @@ echo "starting build..."
|
|||
|
||||
if [ "$?" = "0" ]; then
|
||||
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
|
||||
echo "build failed"
|
||||
exit 1
|
||||
|
|
|
|||
20
db/jenkins
20
db/jenkins
|
|
@ -8,7 +8,6 @@ echo "starting build..."
|
|||
|
||||
if [ "$?" = "0" ]; then
|
||||
echo "build succeeded"
|
||||
if [[ "$GIT_BRANCH" == *develop* || "$GIT_BRANCH" == *master* ]]; then
|
||||
echo "publishing gem"
|
||||
pushd "target/ruby_package"
|
||||
find . -name *.gem -exec curl -f -T {} $GEM_SERVER/{} \;
|
||||
|
|
@ -20,25 +19,6 @@ if [ "$?" = "0" ]; then
|
|||
|
||||
popd
|
||||
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
|
||||
echo "build failed"
|
||||
exit 1
|
||||
|
|
|
|||
18
web/jenkins
18
web/jenkins
|
|
@ -7,24 +7,6 @@ echo "starting build..."
|
|||
|
||||
if [ "$?" = "0" ]; then
|
||||
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
|
||||
echo "build failed"
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ echo "starting build..."
|
|||
if [ "$?" = "0" ]; then
|
||||
echo "build succeeded"
|
||||
|
||||
if [[ "$GIT_BRANCH" == *develop* || "$GIT_BRANCH" == *master* ]]; then
|
||||
|
||||
# generate gem version based on jenkins build number
|
||||
if [ -z $BUILD_NUMBER ]; then
|
||||
|
|
@ -35,24 +34,6 @@ EOF
|
|||
exit 1
|
||||
fi
|
||||
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
|
||||
echo "build failed"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue