[Qa-jenkins-scm] [jenkins.debian.net] 01/02: Submit signing keys to keyservers after generation.
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 ca7e3433e701115852b7f45b6e8916e1e8d700d2
Author: Chris Lamb <lamby at debian.org>
Date: Thu Nov 3 19:16:31 2016 +0000
Submit signing keys to keyservers after generation.
Signed-off-by: Chris Lamb <lamby at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
update_jdn.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/update_jdn.sh b/update_jdn.sh
index 8b23af6..dfd999d 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -678,6 +678,16 @@ Expire-Date: 0
%no-protection
%commit
EOF
+
+ 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) - Generated GPG key but could not parse key ID"
+ else
+ explain "$(date) - Generated GPG key $GPG_KEY_ID - submitting to keyserver"
+ sudo -u jenkins gpg --send-keys $GPG_KEY_ID
+ fi
fi
#
--
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