diff options
Diffstat (limited to 'jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004')
-rwxr-xr-x | jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/jenkins.desktop | 20 | ||||
-rwxr-xr-x | jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/start-ssh-jenkins-linux.sh | 60 |
2 files changed, 80 insertions, 0 deletions
diff --git a/jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/jenkins.desktop b/jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/jenkins.desktop new file mode 100755 index 0000000..fd5f558 --- /dev/null +++ b/jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/jenkins.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Comment[en_US]= +Comment= +Exec=/home/jogamp/jenkins/start-ssh-jenkins-linux.sh +GenericName[en_US]=jenkins KDE autostart +GenericName=jenkins KDE autostart +Icon=exec +MimeType= +Name[en_US]=jenkins +Name=jenkins +Path=/home/jogamp/jenkins +StartupNotify=false +Terminal=false +TerminalOptions= +Type=Application +X-DBUS-ServiceName= +X-DBUS-StartupType=none +X-KDE-SubstituteUID=false +X-KDE-Username= +X-Ubuntu-Gettext-Domain=desktop_kdebase diff --git a/jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/start-ssh-jenkins-linux.sh b/jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/start-ssh-jenkins-linux.sh new file mode 100755 index 0000000..26bc9c5 --- /dev/null +++ b/jenkins-server-slave-setup/nodes/sgothel-linux64-nvidia-003_004/start-ssh-jenkins-linux.sh @@ -0,0 +1,60 @@ +#! /bin/bash + +cd ~/jenkins + +JENKINS_NODE_STARTUP_DIR=`pwd` + +scp [email protected]:/srv/jenkins/war/WEB-INF/slave.jar . + +function connect_1 { + . /opt-share/etc/profile.ant + . /opt-linux-x86/etc/profile.jre8 + . /opt-linux-x86/etc/profile.j2se8 + + export SOURCE_LEVEL=1.6 + export TARGET_LEVEL=1.6 + export TARGET_RT_JAR=/opt-share/jre1.6.0_30/lib/rt.jar + + export JOGAMP_JAR_CODEBASE="Codebase: *.jogamp.org" + + java -version + 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 6003:localhost:5555 -N & + sshpid=$! + java -server -Xmx512m -jar slave.jar -jnlpUrl https://jogamp.org/chuck/computer/linux64-nvidia-debian7-jogamp-x32-sgothel-003/slave-agent.jnlp + done +} + +function connect_2 { + . /opt-share/etc/profile.ant + . /opt-linux-x86_64/etc/profile.jre8 + . /opt-linux-x86_64/etc/profile.j2se8 + + export SOURCE_LEVEL=1.6 + export TARGET_LEVEL=1.6 + export TARGET_RT_JAR=/opt-share/jre1.6.0_30/lib/rt.jar + + export JOGAMP_JAR_CODEBASE="Codebase: *.jogamp.org" + + java -version + 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 6004:localhost:5555 -N & + sshpid=$! + java -server -Xmx512m -jar slave.jar -jnlpUrl https://jogamp.org/chuck/computer/linux64-nvidia-debian7-jogamp-x64-sgothel-004/slave-agent.jnlp + done +} + +connect_1 > linux64-nvidia-debian7-jogamp-x32-sgothel-003.log 2>&1 & +disown $! + +connect_2 > linux64-nvidia-debian7-jogamp-x64-sgothel-004.log 2>&1 & +disown $! + |