From 36424a2e04e19cbf88890e9de047998c109ffba6 Mon Sep 17 00:00:00 2001 From: AlexeerCT Date: Thu, 2 Apr 2026 11:00:37 -0500 Subject: [PATCH] Enhance Jenkinsfile to include passphrase handling for SSH key authentication. Added a passphrase variable for the development server SSH key, improving security during deployment processes. --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 109c43f5..6512be28 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -224,7 +224,8 @@ pipeline { sshUserPrivateKey( credentialsId: 'dev-server-ssh', keyFileVariable: 'DEV_SERVER_KEY', - usernameVariable: 'DEV_SERVER_SSH_USER' + usernameVariable: 'DEV_SERVER_SSH_USER', + passphraseVariable: 'DEV_SERVER_KEY_PASSPHRASE' ) ]) { script { @@ -233,6 +234,7 @@ pipeline { host: env.DEV_SERVER_HOST, user: env.DEV_SERVER_USER ?: env.DEV_SERVER_SSH_USER, identityFile: env.DEV_SERVER_KEY, + passphrase: env.DEV_SERVER_KEY_PASSPHRASE, allowAnyHosts: true ] sshCommand remote: remote, command: '''