Skip to content

Commit

Permalink
fix: condition on mountPrivateKey existance
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <[email protected]>
  • Loading branch information
heurtematte committed Nov 7, 2024
1 parent 58c3c6b commit 1f71f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ local clouds = import "clouds.libsonnet";
}
},
secrets: (
if std.member($.jenkins.plugins, "gerrit-trigger") || $.jenkins.mountPrivateKey then {
if std.member($.jenkins.plugins, "gerrit-trigger") || (std.objectHas($.jenkins, 'mountPrivateKey') && $.jenkins.mountPrivateKey) then {
"gerrit-trigger-plugin": {
username: "genie." + $.project.shortName,
identityFile: "/run/secrets/jenkins/ssh/id_rsa",
Expand Down

0 comments on commit 1f71f05

Please sign in to comment.