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