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
|
# 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
|
||||||
|
|
Loading…
Reference in New Issue