test/Jenkinsfile

12 lines
360 B
Plaintext
Raw Normal View History

2022-07-29 13:28:34 +02:00
node {
2022-07-29 13:58:41 +02:00
def remote = [:]
remote.name = 'workstation'
remote.host = 'workstation'
remote.user = 'dany'
remote.allowAnyHosts = true
2022-07-29 14:06:13 +02:00
remote.identityFile = 'id_ed25519'
2022-07-29 13:58:41 +02:00
stage('Remote SSH') {
2022-07-29 14:00:06 +02:00
sshCommand remote: remote, command: "ls -al"
2022-07-29 13:58:41 +02:00
sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done"
}
2022-07-29 13:28:34 +02:00
}