Fix
This commit is contained in:
1 parent
d6fd074273
commit
91a42fc5d7
1 file changed
+2
-1
+2
-1
@@ -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"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user