From ed6e0fecd5ad9d93629b9ca3392099515484352a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 5 Dec 2024 10:57:26 +0000 Subject: [PATCH] jenkins: Use single quotes when handling a credentials variable Signed-off-by: Michael Tremer --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8f4dacd16..1824c540e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -434,7 +434,8 @@ pipeline { // Import the GPG key withCredentials([file(credentialsId: "${env.GPG_KEY_ID}", variable: "GPG_KEY_FILE")]) { - sh "gpg --import --batch < $GPG_KEY_FILE" + // Jenkins prefers to have single quotes here so that $GPG_KEY_FILE won't be expanded + sh 'gpg --import --batch < $GPG_KEY_FILE' } // Unstash all stashed packages from the matrix build -- 2.39.5