summaryrefslogtreecommitdiffstats
path: root/jenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-07 04:39:23 +0100
committerSven Gothel <[email protected]>2012-03-07 04:39:23 +0100
commit3c08b2e281266ba06901355e4014e19b9d05f2a7 (patch)
tree0c005a131ecb7d55f2476b6d0945fb70f67d02ec /jenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh
parent09df8b2c7844428028bb83f900d8767000952316 (diff)
Add sgothel's jenkins node setup (launch & config)
Diffstat (limited to 'jenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh')
-rwxr-xr-xjenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/jenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh b/jenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh
new file mode 100755
index 0000000..0f2349d
--- /dev/null
+++ b/jenkins-server-slave-setup/nodes/sgothel-macosx64-nv320m-012/start-ssh-jenkins.sh
@@ -0,0 +1,24 @@
+#! /bin/bash
+
+cd /Users/jogamp/jenkins
+
+scp [email protected]:/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" [email protected] -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 $!
+