From b0822a734e11076c7edaeeff5c48816ee43d6c1e Mon Sep 17 00:00:00 2001 From: dany Date: Fri, 29 Jul 2022 13:58:41 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5a6d088..df0eb7e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,11 @@ node { - // This displays colors using the 'xterm' ansi color map. - ansiColor('xterm') { - // Just some echoes to show the ANSI color. - stage "\u001B[31mI'm Red\u001B[0m Now not" - } + def remote = [:] + remote.name = 'workstation' + remote.host = 'workstation' + remote.user = 'dany' + remote.allowAnyHosts = true + stage('Remote SSH') { + sshCommand remote: remote, command: "ls -lrt" + sshCommand remote: remote, command: "for i in {1..5}; do echo -n \"Loop \$i \"; date ; sleep 1; done" + } } \ No newline at end of file