From: Michael Tremer Date: Thu, 5 Dec 2024 10:57:26 +0000 (+0000) Subject: jenkins: Use single quotes when handling a credentials variable X-Git-Tag: 0.9.30~755 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed6e0fecd5ad9d93629b9ca3392099515484352a;p=pakfire.git jenkins: Use single quotes when handling a credentials variable Signed-off-by: Michael Tremer --- 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