From 91a42fc5d7e180562f4ffcf17c04d3c3424e0bbf Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sat, 3 Apr 2021 14:21:36 +0200 Subject: [PATCH] Fix --- Jenkinsfile-v1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile-v1 b/Jenkinsfile-v1 index 62d136c..a52baf4 100644 --- a/Jenkinsfile-v1 +++ b/Jenkinsfile-v1 @@ -28,7 +28,8 @@ pipeline { remote.user = "root" remote.allowAnyHosts = true - withCredentials([sshUserPrivateKey(credentialsId: 'ansible-server-key')]) { + withCredentials([sshUserPrivateKey(credentialsId: 'ansible-server-key', keyFileVariable: 'identity')]) { + remote.identityFile = identity stage('Remote SSH') { sshCommand remote: remote, command: "ls -l" }