HHH-5646 Improved error handling and logging
This commit is contained in:
parent
e316921a75
commit
6afe26922a
|
@ -5,7 +5,9 @@
|
||||||
#
|
#
|
||||||
# Replacement for the maven-release-plugin
|
# Replacement for the maven-release-plugin
|
||||||
################################################################################
|
################################################################################
|
||||||
|
# be defensive and stop the script
|
||||||
|
set -o nounset # when there are uninitalised variables
|
||||||
|
set -o errexit # or when statements return non true values
|
||||||
|
|
||||||
usage="Usage: tagRelease [-u] [-e exportDirectory] [-r releaseVersion] [-d devVersion]"
|
usage="Usage: tagRelease [-u] [-e exportDirectory] [-r releaseVersion] [-d devVersion]"
|
||||||
projectDir=`pwd`
|
projectDir=`pwd`
|
||||||
|
@ -30,7 +32,7 @@ updatePomVersionsAndCommit() {
|
||||||
$i > tmp
|
$i > tmp
|
||||||
mv tmp $i
|
mv tmp $i
|
||||||
done
|
done
|
||||||
git commit -a -m "Updating pom versions to $1 for release tagging"
|
git commit -a -m "Updating pom versions to $2"
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -100,5 +102,5 @@ git tag -m "Tagging $releaseVersion release" $releaseVersion
|
||||||
updatePomVersionsAndCommit $projectDir $devVersion
|
updatePomVersionsAndCommit $projectDir $devVersion
|
||||||
|
|
||||||
if [ $exportDirectory ]; then
|
if [ $exportDirectory ]; then
|
||||||
git archive HEAD | tar -x -C $exportDirectory
|
git archive $releaseVersion | tar -x -C $exportDirectory
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue