From f54fce70cdc6fb3036ff0362e6c68197b62b8b65 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 4 Apr 2012 18:45:36 +0200 Subject: [PATCH] simple script to trigger selenium tests on another host --- schedule_selenium_tests.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 schedule_selenium_tests.sh diff --git a/schedule_selenium_tests.sh b/schedule_selenium_tests.sh new file mode 100755 index 0000000..9bf7ffe --- /dev/null +++ b/schedule_selenium_tests.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e +export + +TEST_LANGUAGE=$(echo $JOB_NAME | cut -d "-" -f2) +TEST_BROWSER=$(echo $JOB_NAME | cut -d "-" -f3) + +figlet $TEST_LANGUAGE +figlet $TEST_BROWSER + +TOKEN=$(pwgen) + +ssh -i ~jenkins/.ssh/id_selenium -t selenium@seoul ./runit.sh $TOKEN $TEST_LANGUAGE $TEST_BROWSER +scp -r -i ~jenkins/.ssh/id_selenium selenium@seoul:$TOKEN/* . +ssh -i ~jenkins/.ssh/id_selenium selenium@seoul rm ./$TOKEN -Rf + -- 2.39.5