From fb76d8e42ec603e30a31a1d566104bffe0520b13 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 4 Mar 2013 18:16:25 +0100 Subject: [PATCH] add script to run liveboot-gw autotests from within jenkins --- liveboot_gw_autotest.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 liveboot_gw_autotest.sh diff --git a/liveboot_gw_autotest.sh b/liveboot_gw_autotest.sh new file mode 100755 index 0000000..d7fef5a --- /dev/null +++ b/liveboot_gw_autotest.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# copyright 2013 Holger Levsen +# GPL2 licenced + +set -e +set -x +export + +CORE_ROUTER=cr13 +GATEWAY=gw1301 +PSERVER=pserver1301 + +# +# prepare pserver +# +ssh -i ~/.ssh/id_ritest $PSERVER "sudo dmsetup remove_all" +ssh -i ~/.ssh/id_ritest $PSERVER "sudo mkdir -p /mnt/local_hdd" +ssh -i ~/.ssh/id_ritest $PSERVER "sudo mount /dev/sda1 -t ext3 /mnt/local_hdd" + +# +# prepare core router +# +ssh -i ~/.ssh/id_ritest $CORE_ROUTER "sudo rm /opt/autotest -rf" +ssh -i ~/.ssh/id_ritest $CORE_ROUTER "git clone git://git/ri/autotest.git /opt/autotest" +ssh -i ~/.ssh/id_ritest $CORE_ROUTER "cd /opt/autotest ; git checkout develop" +ssh -A -i ~/.ssh/id_ritest $CORE_ROUTER "cd /opt/autotest ; ./run-compile.sh --config config-jenkins.xml" + + -- 2.39.5