diff options
Diffstat (limited to 'jenkins-server-slave-setup/nodes/c3d-win64-amd58xx-001-002/start-ssh-hudson-windows.sh')
-rwxr-xr-x | jenkins-server-slave-setup/nodes/c3d-win64-amd58xx-001-002/start-ssh-hudson-windows.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/jenkins-server-slave-setup/nodes/c3d-win64-amd58xx-001-002/start-ssh-hudson-windows.sh b/jenkins-server-slave-setup/nodes/c3d-win64-amd58xx-001-002/start-ssh-hudson-windows.sh new file mode 100755 index 0000000..a146299 --- /dev/null +++ b/jenkins-server-slave-setup/nodes/c3d-win64-amd58xx-001-002/start-ssh-hudson-windows.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +cd ~/hudson + +scp [email protected]:/srv/jenkins/war/WEB-INF/slave.jar . + +function connect_1 { + sshpid= + while true ; do + if [ ! -z "$sshpid" ] ; then + kill -9 $sshpid + fi + ssh -o "ServerAliveInterval 30" -o "ServerAliveCountMax 5" -o "TCPKeepAlive yes" [email protected] -L 5701:localhost:5555 -N & + sshpid=$! + ./win64-amd58xx-win7-jogamp-x32-c3d-001.bat + done +} + +function connect_2 { + sshpid= + while true ; do + if [ ! -z "$sshpid" ] ; then + kill -9 $sshpid + fi + ssh -o "ServerAliveInterval 30" -o "ServerAliveCountMax 5" -o "TCPKeepAlive yes" [email protected] -L 5702:localhost:5555 -N & + sshpid=$! + ./win64-amd58xx-win7-jogamp-x64-c3d-002.bat + done +} + + +connect_1 > win64-amd58xx-win7-jogamp-x32-c3d-001.log 2>&1 & +disown $! + +connect_2 > win64-amd58xx-win7-jogamp-x64-c3d-002.log 2>&1 & +disown $! |