diff options
Diffstat (limited to 'jenkins-server-slave-setup/nodes/sgothel-win64-multi-010/start-ssh-jenkins.sh')
-rwxr-xr-x | jenkins-server-slave-setup/nodes/sgothel-win64-multi-010/start-ssh-jenkins.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/jenkins-server-slave-setup/nodes/sgothel-win64-multi-010/start-ssh-jenkins.sh b/jenkins-server-slave-setup/nodes/sgothel-win64-multi-010/start-ssh-jenkins.sh new file mode 100755 index 0000000..ad6a3a4 --- /dev/null +++ b/jenkins-server-slave-setup/nodes/sgothel-win64-multi-010/start-ssh-jenkins.sh @@ -0,0 +1,26 @@ +#! /bin/sh + +cd ~/jenkins + +#scp [email protected]:/srv/jenkins/war/WEB-INF/slave.jar . +curl -O https://jogamp.org/chuck/jnlpJars/agent.jar + +function connect_2 { + sshpid= + while true ; do + if [ ! -z "$sshpid" ] ; then + kill -9 $sshpid + fi + if [ -e stop_node ] ; then + exit 1 + fi + ssh -o "ServerAliveInterval 30" -o "ServerAliveCountMax 5" -o "TCPKeepAlive yes" [email protected] -L 6011:localhost:5555 -N & + sshpid=$! + ./windows-x86_64-jau-011.bat + done +} + + +connect_2 > windows-x86_64-jau-011.log 2>&1 & +disown $! + |