From ec9e818d9c96cb814c6c07ad46033c51666e76ca Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 16:13:40 -0700 Subject: [PATCH] s --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 78d46b2..3121738 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,13 +27,11 @@ pipeline { stage('Pull and Deploy') { steps { withCredentials([ - sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'SSH_USER') + sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'userName') ]) { - script { - def remote = [:] remote.name = 'ubuntu-kc' remote.host = '172.16.11.90' - remote.user = SSH_USER + remote.user = userName remote.identityFile = identity remote.allowAnyHosts = true