summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2016-07-21 11:44:21 -0400
committerAric Gardner <agardner@linuxfoundation.org>2016-07-21 11:44:21 -0400
commitb565c489fcec77fe4a75797bed0fbfafcccc9969 (patch)
tree246c4916e5bbe2e157cd5cf8490a973926e22b56
parent6e3de12d3a2027b6a135986301ab3e6b1d9998d5 (diff)
Don't fail the build if importing gpg key fails
I prefer that the build succeeds even if the siging fails. once we have the signing working on all pods I will revert this change. Change-Id: Icc5e0a158ccee6e09be9b275d403f5252a473430 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
-rwxr-xr-xutils/gpg_import_key.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/gpg_import_key.sh b/utils/gpg_import_key.sh
index bb11f0d45..f45e40919 100755
--- a/utils/gpg_import_key.sh
+++ b/utils/gpg_import_key.sh
@@ -37,12 +37,12 @@ fi
if ! isinstalled gnupg2; then
echo "error with install"
- exit 1
+ exit 0
fi
if ! which gsutil;
then echo "error gsutil not installed";
- exit 1
+ exit 0
fi
if gpg2 --list-keys | grep "opnfv-helpdesk@rt.linuxfoundation.org"; then
@@ -50,7 +50,7 @@ if gpg2 --list-keys | grep "opnfv-helpdesk@rt.linuxfoundation.org"; then
else
if [ -z "$NODE_NAME" ];
then echo "Cannot find node name"
- exit 1
+ exit 0
else echo "Importing key for '$NODE_NAME'";
gsutil cp gs://opnfv-signing-keys/"$NODE_NAME"-subkey .
gpg2 --import "$NODE_NAME"-subkey