From 1c3a360971a349df94486ab668c42a32d39c04d1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 5 Dec 2024 10:43:28 +0000 Subject: [PATCH] jenkins: Try importing the GPG key from Jenkins credentials Signed-off-by: Michael Tremer --- Jenkinsfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d15a09132..193257142 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -415,16 +415,24 @@ pipeline { environment { GNUPGHOME = "${WORKSPACE}/.gnupg" + + // Our signing key + GPG_KEY_ID = "E4D20FA6FAA108D54ABDFC6541836ADF9D5E2AD9" } steps { - // Import the GPG key + // Create the GPG stash directory sh """ mkdir -p $GNUPGHOME chmod 700 $GNUPGHOME printenv """ + // Import the GPG key + withCredentials([file(credentialsId: "${env.GPG_KEY_ID}", variable: "GPG_KEY_FILE")]) { + sh "gpg --import --batch < $GPG_KEY_FILE" + } + // Unstash all stashed packages from the matrix build script { for (distro in ["trixie", "bookworm"]) { @@ -458,7 +466,7 @@ pipeline { archiveArtifacts artifacts: "packages/debian/**/*" // Fetch a Kerberos ticket - sh "kinit -kV" + //sh "kinit -kV" // XXX This needs to be published on a mirror server somewhere } -- 2.39.5