Fix
This commit is contained in:
@@ -25,10 +25,11 @@ 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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,3 +37,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user