dpkg-parsechangelog
exit 1
fi
+figlet "$DISTRIBUTION"
# build debian package (just binary, no source package)
dpkg-buildpackage -us -uc -b
# upload
dcmd scp $CHANGES_FILE reprepro@alexandria.pb.local:/srv/$REPO/incoming/profitbricks/
ssh reprepro@alexandria.pb.local /srv/$REPO/bin/pb_processincoming
+figlet "Uploaded."
# cleanp
dcmd rm $CHANGES_FILE
cd $WORKSPACE
git tag $TAG
git push origin $GIT_BRANCH_NAME
git push origin $TAG
+ figlet "Tagged."
fi
# show the changelog
if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:7} = "bugfix/" ]; then
if [[ "$BUILD_TRIGGERS" == *"merge"* ]]; then
git push origin integration
+ figlet "Pushed to integration."
git checkout origin/$GIT_BRANCH_NAME -b $GIT_BRANCH_NAME
fi
fi
[ -d .repository ] && rm .repository -rf && echo "$WORKSPACE/.repository (used by Maven) removed"
# clean up git
git reset --hard
+# respect build-triggers (triggered from a git commit message containing the string [no-test])
+if [[ "$BUILD_TRIGGERS" == *"no-test"* ]]; then
+ export NO_TEST="true"
+fi
+
+echo "About to build branch:"
+figlet "$GIT_BRANCH_NAME"
if [ ${GIT_BRANCH_NAME:0:8} = "feature/" ] || [ ${GIT_BRANCH_NAME:0:7} = "bugfix/" ] ; then
if [[ "$BUILD_TRIGGERS" == *"merge"* ]]; then
git pull origin integration
echo "Trying to fast-forward merge $GIT_BRANCH_NAME..."
git fetch origin -fp
+ figlet "integration merge"
git merge --no-ff origin/$GIT_BRANCH_NAME
fi
elif [ "$GIT_BRANCH_NAME" = "master" ] || [ "${GIT_BRANCH_NAME:0:7}" = "hotfix/" ] ; then