DISTRIBUTION="unstable"
else
DISTRIBUTION="experimental"
- if
+ fi
fi
if ! containsElement $DISTRIBUTION "${VALID_DISTROS[@]}" ; then
if [ "$GIT_BRANCH_NAME" = "master" ] || [ "${GIT_BRANCH_NAME:0:7}" = "hotfix/" ] ; then
git add debian/changelog
git commit -m "Automatic commit by jenkins after build of $BUILD_NUMBER"
- # TODO: git tag
+ # ~ and : are not valid in git tags, replace them:
+ TAG=$(echo $VERSION | tr '~' '_' | tr ':' ',')
+ git tag $TAG
git push origin $GIT_BRANCH_NAME
+ git push origin $TAG
fi
# upload to reprepro