This commit is contained in:
Nana Janashia
2021-04-03 14:21:36 +02:00
parent d6fd074273
commit 91a42fc5d7

View File

@@ -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"
}