From: Michael Tremer Date: Thu, 5 Dec 2024 10:43:28 +0000 (+0000) Subject: jenkins: Try importing the GPG key from Jenkins credentials X-Git-Tag: 0.9.30~758 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c3a360971a349df94486ab668c42a32d39c04d1;p=pakfire.git jenkins: Try importing the GPG key from Jenkins credentials Signed-off-by: Michael Tremer --- 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 }