* VRFS-1016
This commit is contained in:
parent
d5478dc926
commit
6806d6f0d3
|
|
@ -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
|
||||||
|
|
|
||||||
38
db/jenkins
38
db/jenkins
|
|
@ -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
|
||||||
|
|
|
||||||
18
web/jenkins
18
web/jenkins
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue