From: Holger Levsen Date: Wed, 4 Apr 2012 16:45:36 +0000 (+0200) Subject: simple script to trigger selenium tests on another host X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f54fce70cdc6fb3036ff0362e6c68197b62b8b65;p=profitbricks%2Fjenkins-build-scripts.git simple script to trigger selenium tests on another host --- 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 +