]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Use single quotes when handling a credentials variable
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Dec 2024 10:57:26 +0000 (10:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Dec 2024 17:03:49 +0000 (17:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index 8f4dacd163da0c6b9d16620ec047630b3efed71b..1824c540e01950a0d871cdbf8411e319adcc7641 100644 (file)
@@ -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