Fix for gpg-agent. 93/16493/1
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 6 Jul 2016 21:47:55 +0000 (17:47 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 6 Jul 2016 21:48:56 +0000 (17:48 -0400)
I might need to force call an $(eval gpg-agent)
Buuut I think this should work.

Change-Id: I6b3311bc1a1f19d74f4668bfe717fdd67757fc72
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
jjb/apex/apex-upload-artifact.sh

index 49e19bb..d45c7c0 100755 (executable)
@@ -23,8 +23,8 @@ fi
 signrpm () {
 for artifact in $RPM_LIST $SRPM_LIST; do
   echo "Signing artifact: ${artifact}"
-  gpg2 -vvv --batch \
-    --default-key opnfv-helpdesk@rt.linuxfoundation.org  \
+  gpg2 -vvv --batch --yes --no-tty \
+    --default-key opnfv-helpdesk@rt.linuxfoundation.org \
     --passphrase besteffort \
     --detach-sig $artifact
     gsutil cp "$artifact".sig gs://$GS_URL/$(basename "$artifact".sig)
@@ -33,7 +33,7 @@ done
 }
 
 signiso () {
-time gpg2 -vvv --batch \
+time gpg2 -vvv --batch --yes --no-tty \
   --default-key opnfv-helpdesk@rt.linuxfoundation.org  \
   --passphrase notreallysecure \
   --detach-sig $BUILD_DIRECTORY/release/OPNFV-CentOS-7-x86_64-$OPNFV_ARTIFACT_VERSION.iso