summaryrefslogtreecommitdiffstats
path: root/jenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh
blob: 0f2349de28fee41647ace2698a78ca0efdfd5109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/bash

cd /Users/jogamp/jenkins

scp chuckslave@jogamp.org:/srv/jenkins/war/WEB-INF/slave.jar .

function connect_12 {
  . /opt-share/etc/profile.ant
  java -version
  which git
  sshpid=
  while true ; do
    if [ ! -z "$sshpid" ] ; then
	kill -9 $sshpid
    fi
    ssh -o "ServerAliveInterval 30" -o "ServerAliveCountMax 5" -o "TCPKeepAlive yes" chuckslave@jogamp.org -L 6012:localhost:5555 -N &
    sshpid=$!
    java -server -Xmx1024m -jar slave.jar -jnlpUrl https://jogamp.org/chuck/computer/macosx64-NV320M-10_6-jogamp-x64-sgothel-012/slave-agent.jnlp
  done
}

connect_12 > macosx64-NV320M-10_6-jogamp-x64-sgothel-012.log 2>&1 &
disown $!