From 21734fe15e1e0e4c40fa5fe08bfc0277c85857e4 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Mon, 15 Jul 2019 05:28:49 -0700 Subject: [PATCH] Fix release script for infer-annotation JAR Summary: There were issues with signing with newer versions of gpg. Also the script required to be run from the infer/annotations which is somewhat inconvenient. Reviewed By: jvillard Differential Revision: D16259704 fbshipit-source-id: 84354d592 --- scripts/create_annotations_release.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/create_annotations_release.sh b/scripts/create_annotations_release.sh index e188e2a318a..4ded4291e26 100755 --- a/scripts/create_annotations_release.sh +++ b/scripts/create_annotations_release.sh @@ -10,8 +10,12 @@ set -x set -e -REMOTE="$( git remote get-url origin )" -OSS_REMOTE=https://github.com/facebook/infer.git +# This fixes 'gpg: signing failed: Inappropriate ioctl for device' error +# during signing +export GPG_TTY=$(tty) + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +ROOTDIR="$( cd $DIR/.. && pwd)" # check if we're in the open-source repo if ! git remote get-url origin | grep -q "\bgithub\.com\b"; then @@ -21,5 +25,6 @@ fi echo "Starting release..." -mvn -e release:clean release:prepare -mvn -e release:perform -DpushChanges=false +( cd "$ROOTDIR/infer/annotations" && \ + mvn -e release:clean release:prepare && \ + mvn -e release:perform -DpushChanges=false )