Update 'Jenkinsfile'
This commit is contained in:
parent
99811e34dd
commit
b0822a734e
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -1,7 +1,11 @@
|
|||||||
node {
|
node {
|
||||||
// This displays colors using the 'xterm' ansi color map.
|
def remote = [:]
|
||||||
ansiColor('xterm') {
|
remote.name = 'workstation'
|
||||||
// Just some echoes to show the ANSI color.
|
remote.host = 'workstation'
|
||||||
stage "\u001B[31mI'm Red\u001B[0m Now not"
|
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user