GATEWAY=gw1301
PSERVER=pserver1301
+echo "LIVEBOOT_BUILD_NUMBER: ${LIVEBOOT_BUILD_NUMBER}"
+echo "AUTOTEST_BRANCH: ${AUTOTEST_BRANCH}"
+echo "REPORT_TO_TESTLINK: ${REPORT_TO_TESTLINK}"
+echo "AUTOTEST_CONFIG: ${AUTOTEST_CONFIG}"
#
# prepare ssh
#
#
ssh -t $CORE_ROUTER "sudo rm /opt/autotest -rf ; sudo mkdir -p /opt/autotest ; sudo chown jenkins /opt/autotest"
ssh -t $CORE_ROUTER "cd /opt ; git clone git://git/ri/autotest.git"
-ssh -t $CORE_ROUTER "cd /opt/autotest ; git checkout master"
+ssh -t $CORE_ROUTER "cd /opt/autotest ; git checkout ${AUTOTEST_BRANCH}"
#
#
# call autotest suite w/ testlink connector info
ssh -t -A $CORE_ROUTER "cd /opt/autotest ; ./compile.sh"
-ssh -t -A $CORE_ROUTER "cd /opt/autotest ; java -ea -jar dist/lib/AutoTest.jar --testlink='Profitbricks,R&I Liveboot Approval Autotest,liveboot-${LIVEBOOT_BUILD_NUMBER},R&I HW Test Bed'"
+
+if [ ${REPORT_TO_TESTLINK} -eq 0 ]; then
+ echo "Report Results to TestLink..."
+ ssh -t -A $CORE_ROUTER "cd /opt/autotest ; java -ea -jar dist/lib/AutoTest.jar --testlink='Profitbricks,R&I Liveboot Approval Autotest,liveboot-${LIVEBOOT_BUILD_NUMBER},R&I HW Test Bed'"
+else
+ ssh -t -A $CORE_ROUTER "cd /opt/autotest ; java -ea -jar dist/lib/AutoTest.jar --tracepjds --config=${AUTOTEST_CONFIG}"
+fi
+
+
# no testlink support in vcb tests yet
ssh -t -A $CORE_ROUTER "cd /opt/autotest ; ./run-compile.sh --vcb=true --tracepjds"