echo "Downloading the distribution..."
wget --no-verbose ${ACTUALBUNDLEURL}
+if [ ${JDKVERSION} == 'openjdk8' ]; then
+ echo "Setting the JDK Version to 8"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64
+ java -version
+fi
+if [ ${JDKVERSION} == 'openjdk7' ]; then
+ echo "Setting the JDK Version to 7"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64
+ java -version
+fi
+
echo "Extracting the new controller..."
unzip -q ${BUNDLE}
sed -ie "s/2048m/${CONTROLLERMEM}/g" ${MEMCONF}
cat ${MEMCONF}
+echo "JDK Version ..."
+java -version
+
echo "Starting controller..."
${WORKSPACE}/${BUNDLEFOLDER}/bin/start
cat > ${WORKSPACE}/controller-script.sh <<EOF
+if [ ${JDKVERSION} == 'openjdk8' ]; then
+ echo "Setting the JDK Version to 8"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64
+ java -version
+fi
+if [ ${JDKVERSION} == 'openjdk7' ]; then
+ echo "Setting the JDK Version to 7"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64
+ java -version
+fi
+
echo "Changing to /tmp"
cd /tmp
echo "Listing all open ports on controller system..."
netstat -natu
+echo "JDK Version ..."
+java -version
+
echo "Starting controller..."
/tmp/${BUNDLEFOLDER}/bin/start
echo "Clean workspace"
rm -rf *
+if [ ${JDKVERSION} == 'openjdk8' ]; then
+ echo "Setting the JDK Version to 8"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64
+ java -version
+fi
+if [ ${JDKVERSION} == 'openjdk7' ]; then
+ echo "Setting the JDK Version to 7"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64
+ java -version
+fi
+
echo "Downloading the distribution..."
wget --no-verbose ${ACTUALBUNDLEURL}
echo "redirected karaf console output to karaf_console.log"
export KARAF_REDIRECT=${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf_console.log
+echo "JDK Version ..."
+java -version
+
echo "Starting controller..."
${WORKSPACE}/${BUNDLEFOLDER}/bin/start
cat > ${WORKSPACE}/deploy-controller-script.sh <<EOF
+if [ ${JDKVERSION} == 'openjdk8' ]; then
+ echo "Setting the JDK Version to 8"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.60-2.b27.el7_1.x86_64
+ java -version
+fi
+if [ ${JDKVERSION} == 'openjdk7' ]; then
+ echo "Setting the JDK Version to 7"
+ sudo /usr/sbin/alternatives --set java /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64/jre/bin/java
+ export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1.x86_64
+ java -version
+fi
+
echo "Changing to /tmp"
cd /tmp
echo "Listing all open ports on controller system"
netstat -natu
+echo "JDK Version ..."
+java -version
+
EOF
for i in `seq 1 ${NUM_ODL_SYSTEM}`
branch: '{branch}'
- integration-bundleurl:
bundleurl: 'last'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
wrappers:
- build-timeout
branch: '{branch}'
- integration-bundleurl:
bundleurl: 'last'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
wrappers:
- build-timeout
default: '{bundleurl}'
description: 'URL to karaf distribution zip'
+- parameter:
+ name: integration-jdk-version
+ parameters:
+ - string:
+ name: JDKVERSION
+ default: '{jdkversion}'
+ description: 'Parameter to indicate JAVA Version'
+
- parameter:
name: integration-controller-scope
parameters:
test-options: '{robot-options}'
- integration-test-plan:
test-plan: '{project}-{functionality}.txt'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-plan: '{project}-{functionality}.txt'
- integration-patch-refspec:
branch: 'stable/helium'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-options: '{robot-options}'
- integration-test-plan:
test-plan: '{project}-{functionality}.txt'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-plan: '{project}-{functionality}.txt'
- integration-patch-refspec:
branch: 'master'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-plan: '{project}-{functionality}.txt'
- integration-patch-refspec:
branch: 'master'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-options: '{robot-options}'
- integration-test-plan:
test-plan: '{project}-{functionality}.txt'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-plan: '{project}-{functionality}.txt'
- integration-patch-refspec:
branch: 'master'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-plan: '{project}-{functionality}.txt'
- integration-patch-refspec:
branch: 'master'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
test-plan: 'test-libraries.txt'
- integration-patch-refspec:
branch: '$GERRIT_REFSPEC'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
scm:
- integration-gerrit-scm:
parameters:
- integration-bundleurl:
bundleurl: 'last'
+ - integration-jdk-version:
+ jdkversion: 'openjdk7'
triggers:
- timed: 'H H * * 6'