This commit is contained in:
Nana Janashia
2021-04-03 14:19:10 +02:00
parent 7a72b254ed
commit d6fd074273

View File

@@ -25,14 +25,16 @@ pipeline {
def remote = [:] def remote = [:]
remote.host = "157.230.120.252" remote.host = "157.230.120.252"
remote.user = "root"
remote.allowAnyHosts = true remote.allowAnyHosts = true
withCredentials([sshUserPrivateKey(credentialsId: 'ansible-server-key')]) { withCredentials([sshUserPrivateKey(credentialsId: 'ansible-server-key')]) {
remote.user = "root" stage('Remote SSH') {
sshCommand remote: remote, command: "ls -l" sshCommand remote: remote, command: "ls -l"
} }
} }
} }
} }
} }
}
} }