[Qa-jenkins-scm] [jenkins.debian.net] 02/02: As a one-off, send our key to the keyserver.
Holger Levsen
holger at layer-acht.org
Fri Nov 4 11:24:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 13bbc6749cb172357fd1fc4591f6e8b08f1e96b6
Author: Chris Lamb <lamby at debian.org>
Date: Fri Nov 4 11:18:42 2016 +0000
As a one-off, send our key to the keyserver.
This commit should be reverted once deployed everywhere.
Signed-off-by: Chris Lamb <lamby at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
update_jdn.sh | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/update_jdn.sh b/update_jdn.sh
index dfd999d..1ce08d9 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -690,6 +690,17 @@ EOF
fi
fi
+# As a one-off, send our key to the keyserver
+GPG_KEY_ID="$(sudo -u jenkins gpg --with-colons --fixed-list-mode --list-secret-keys | grep '^sec' | cut -d: -f5 | tail -n1)"
+
+if [ "$GPG_KEY_ID" = "" ]
+then
+ explain "$(date) - Could not find existing GPG key to submit"
+else
+ explain "$(date) - Submitting previously-generated GPG key $GPG_KEY_ID to keyserver"
+ sudo -u jenkins gpg --send-keys $GPG_KEY_ID
+fi
+
#
# There's always some work left...
# echo FIXME is ignored so check-jobs scripts can output templates requiring manual work
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list