Hook 05-create-changelog-prebuild: ne pas quitter le script en erreur si la génération du changelog a échouée

This commit is contained in:
wpetit 2015-12-28 09:39:34 +01:00
parent efafcf204a
commit 26582649cc
1 changed files with 2 additions and 4 deletions

View File

@ -8,14 +8,12 @@ fi
# Get commits log as changelog # Get commits log as changelog
BUILD_BRANCH=$(get_opt build_branch dist/ubuntu/precise/master)
BUILD_TAG=$(get_opt build_tag "last") BUILD_TAG=$(get_opt build_tag "last")
echo "BUILD TAG IS ${BUILD_TAG}" echo "BUILD TAG IS ${BUILD_TAG}"
if [[ ${BUILD_TAG} == "last" ]] if [[ ${BUILD_TAG} == "last" ]]
then then
git checkout ${BUILD_BRANCH}
tags=$(git tag master -l "release/*"|sort -r) tags=$(git tag master -l "release/*"|sort -r)
else else
tagbranch="build-tag-${BUILD_TAG}" tagbranch="build-tag-${BUILD_TAG}"
@ -26,8 +24,8 @@ fi
if [[ -z ${tags} ]] if [[ -z ${tags} ]]
then then
error "No relase tag found, you repo must have a tag like 'release/X.X'" error "No release tag found, you repo must have a tag like 'release/X.X'"
exit 2 exit
fi fi
touch debian/changelog touch debian/changelog