MNEMONIC-364: Add GPG failure handling in release script
diff --git a/bin/release.sh b/bin/release.sh
index 08a7f40..9c4921a 100755
--- a/bin/release.sh
+++ b/bin/release.sh
@@ -82,7 +82,8 @@
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${RELEASE_VERSION}-incubating
git commit . -m "Prepare for releasing ${RELEASE_VERSION}-incubating ${RELEASE_CANDIDATE_ID}"
-git tag -s v${RELEASE_VERSION}-incubating -m "Release ${RELEASE_VERSION}-incubating ${RELEASE_CANDIDATE_ID}"
+git tag -s v${RELEASE_VERSION}-incubating -m "Release ${RELEASE_VERSION}-incubating ${RELEASE_CANDIDATE_ID}" ||
+ { echo "Tagging with signing failed"; exit 35; }
rm -rf target/
git clean -xdf