From 2e73f861404ad4934b7b812dc56a0ce82720eb6d Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 16:07:16 -0700 Subject: [PATCH] s --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c47d58f..241804c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,14 +27,14 @@ pipeline { stage('Pull and Deploy') { steps { withCredentials([ - sshUserPrivateKey(credentialsId: 'ssh-cred', identity: 'SSH_KEY', usernameVariable: 'SSH_USER') + sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'SSH_USER') ]) { script { def remote = [:] remote.name = 'ubuntu-kc' remote.host = '172.16.11.90' remote.user = "${SSH_USER}" - remote.keyFile = "${SSH_KEY}" + remote.keyFile = "${IDENTITY}" remote.allowAnyHosts = true writeFile file: 'run-pull-deploy.sh', text: '''