summaryrefslogtreecommitdiffstats
path: root/jenkins-server-slave-setup/nodes/sgothel-linux64-multi-002/start-ssh-jenkins-linux.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-24 15:45:09 +0100
committerSven Gothel <[email protected]>2023-01-24 15:45:09 +0100
commit1b3cf69120ffc405ac18444c7d888996099e06f8 (patch)
tree252f629a73119480e46b1ec4cc77a6d9a1ab4826 /jenkins-server-slave-setup/nodes/sgothel-linux64-multi-002/start-ssh-jenkins-linux.sh
parentb2261ef459e62e70c5d5ef09866828f6a934e6fd (diff)
Re-add renamed jenkins node folder sgothel-linux64-multi-002
In commit 33536d1ae923149a0b7113d57cf8a96e42ab7d16 errnoeusly I forgot to add the renamed folder name :-/
Diffstat (limited to 'jenkins-server-slave-setup/nodes/sgothel-linux64-multi-002/start-ssh-jenkins-linux.sh')
-rwxr-xr-xjenkins-server-slave-setup/nodes/sgothel-linux64-multi-002/start-ssh-jenkins-linux.sh176
1 files changed, 176 insertions, 0 deletions
diff --git a/jenkins-server-slave-setup/nodes/sgothel-linux64-multi-002/start-ssh-jenkins-linux.sh b/jenkins-server-slave-setup/nodes/sgothel-linux64-multi-002/start-ssh-jenkins-linux.sh
new file mode 100755
index 0000000..a58d3a1
--- /dev/null
+++ b/jenkins-server-slave-setup/nodes/sgothel-linux64-multi-002/start-ssh-jenkins-linux.sh
@@ -0,0 +1,176 @@
+#! /bin/bash
+
+# Bug 1386: Mesa 18.3.6 hardware renderer (Intel/AMD) freezes after native parenting
+export LIBGL_ALWAYS_SOFTWARE=true
+
+cd ~/jenkins
+
+JENKINS_NODE_STARTUP_DIR=`pwd`
+
+#scp [email protected]:/srv/jenkins/war/WEB-INF/slave.jar .
+curl -O https://jogamp.org/chuck/jnlpJars/agent.jar
+
+function connect_2 {
+ . ./profile.ant
+ . ./profile.amd64.java17
+
+ export LIBGL_ALWAYS_SOFTWARE=true
+
+ export SOURCE_LEVEL=1.8
+ export TARGET_LEVEL=1.8
+ export TARGET_RT_JAR=/opt-share/jre1.8.0_212/lib/rt.jar
+
+ export JOGAMP_JAR_CODEBASE="Codebase: *.jogamp.org"
+
+ java -version
+ 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 6002:localhost:5555 -N &
+ sshpid=$!
+ java -server -Xmx512m -XX:+UseCompressedOops -jar agent.jar -jnlpUrl https://jogamp.org/chuck/computer/linux-x86_64-jau-002/slave-agent.jnlp
+ done
+}
+
+function connect_31 {
+ . ./profile.ant
+ . ./profile.amd64.j2se17
+
+ export SOURCE_LEVEL=1.8
+ export TARGET_LEVEL=1.8
+ export TARGET_RT_JAR=/opt-share/jre1.8.0_212/lib/rt.jar
+
+ export JOGAMP_JAR_CODEBASE="Codebase: *.jogamp.org"
+
+ # arm-linux-gnueabi == armel triplet
+ PATH=$JENKINS_NODE_STARTUP_DIR/toolchain/armhf-linux-gnueabi/bin:$PATH
+ export PATH
+
+ export TARGET_PLATFORM_SYSROOT=`gcc --print-sysroot`
+ export TARGET_PLATFORM_USRROOT=/opt-linux-armv6-armhf
+ export TARGET_PLATFORM_USRLIBS=$TARGET_PLATFORM_USRROOT/usr/lib
+ export TARGET_JAVA_LIBS=$TARGET_PLATFORM_USRROOT/jre/lib/arm
+
+ export GLUEGEN_CPPTASKS_FILE=make/lib/gluegen-cpptasks-linux-armv6hf.xml
+
+ export JUNIT_RUN_ARG0="-Dnewt.test.Screen.disableScreenMode"
+
+ java -version
+ 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 6031:localhost:5555 -N &
+ sshpid=$!
+ java -server -Xmx512m -XX:+UseCompressedOops -jar agent.jar -jnlpUrl https://jogamp.org/chuck/computer/linux-arm32-armv7hf-jau-031/slave-agent.jnlp
+ done
+}
+
+function connect_32 {
+ . ./profile.ant
+ . ./profile.amd64.java17
+
+ export SOURCE_LEVEL=1.8
+ export TARGET_LEVEL=1.8
+ export TARGET_RT_JAR=/opt-share/jre1.8.0_212/lib/rt.jar
+
+ export JOGAMP_JAR_CODEBASE="Codebase: *.jogamp.org"
+
+ # arm-linux-gnueabi == armel triplet
+ PATH=$JENKINS_NODE_STARTUP_DIR/toolchain/aarch64-linux-gnueabi/bin:$PATH
+ export PATH
+
+ export TARGET_PLATFORM_SYSROOT=`gcc --print-sysroot`
+ export TARGET_PLATFORM_USRROOT=/opt-linux-arm64
+ export TARGET_PLATFORM_USRLIBS=$TARGET_PLATFORM_USRROOT/usr/lib
+ export TARGET_JAVA_LIBS=$TARGET_PLATFORM_USRROOT/jre/lib/aarch64
+
+ export GLUEGEN_CPPTASKS_FILE=make/lib/gluegen-cpptasks-linux-aarch64.xml
+
+ export JUNIT_RUN_ARG0="-Dnewt.test.Screen.disableScreenMode"
+
+ java -version
+ 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 6032:localhost:5555 -N &
+ sshpid=$!
+ java -server -Xmx512m -XX:+UseCompressedOops -jar agent.jar -jnlpUrl https://jogamp.org/chuck/computer/linux-arm64-aarch64-jau-032/slave-agent.jnlp
+ done
+}
+
+
+function connect_41 {
+ . ./profile.ant
+ . ./profile.amd64.java17
+
+ export ANDROID_HOME=/opt-linux-x86_64/android-sdk-linux_x86_64
+ export ANDROID_API_LEVEL=24
+ export ANDROID_HOST_TAG=linux-x86_64
+ export ANDROID_ABI=arm64-v8a
+
+ if [ -e ${JENKINS_NODE_STARTUP_DIR}/setenv-android-tools.sh ] ; then
+ . ${JENKINS_NODE_STARTUP_DIR}/setenv-android-tools.sh
+ else
+ echo "${JENKINS_NODE_STARTUP_DIR}/setenv-android-tools.sh doesn't exist!"
+ exit 1
+ fi
+
+ export GLUEGEN_CPPTASKS_FILE=make/lib/gluegen-cpptasks-android-aarch64.xml
+ export GLUEGEN_PROPERTIES_FILE=/home/jogamp/android/gluegen.properties # for key signing props
+
+ export PATH_VANILLA=$PATH
+ export PATH=${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_NAME}/bin:${ANDROID_TOOLCHAIN_ROOT}/bin:${ANDROID_HOME}/platform-tools:${ANDROID_BUILDTOOLS_ROOT}:${PATH}
+ echo PATH ${PATH} 2>&1 | tee -a ${LOGF}
+ echo clang `which clang` 2>&1 | tee -a ${LOGF}
+
+ export SOURCE_LEVEL=1.8
+ export TARGET_LEVEL=1.8
+ export TARGET_RT_JAR=/opt-share/jre1.8.0_212/lib/rt.jar
+
+ export JOGAMP_JAR_CODEBASE="Codebase: *.jogamp.org"
+
+ #export JUNIT_DISABLED="true"
+ #export JUNIT_RUN_ARG0="-Dnewt.test.Screen.disableScreenMode"
+
+ java -version
+ 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 6041:localhost:5555 -N &
+ sshpid=$!
+ java -server -Xmx512m -XX:+UseCompressedOops -jar agent.jar -jnlpUrl https://jogamp.org/chuck/computer/android-arm64-aarch64-jau-041/slave-agent.jnlp
+ done
+}
+
+connect_2 > linux-x86_64-jau-002.log 2>&1 &
+disown $!
+
+connect_32 > linux-arm64-aarch64-jau-032.log 2>&1 &
+disown $!
+
+connect_31 > linux-arm32-armv7hf-jau-031.log 2>&1 &
+disown $!
+
+connect_41 > android-arm64-aarch64-jau-041.log 2>&1 &
+disown $!
+