]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
simple script to trigger selenium tests on another host
authorHolger Levsen <holger@layer-acht.org>
Wed, 4 Apr 2012 16:45:36 +0000 (18:45 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 4 Apr 2012 16:45:36 +0000 (18:45 +0200)
schedule_selenium_tests.sh [new file with mode: 0755]

diff --git a/schedule_selenium_tests.sh b/schedule_selenium_tests.sh
new file mode 100755 (executable)
index 0000000..9bf7ffe
--- /dev/null
@@ -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
+