From 1be9e436b18a4e82233927206fa4a43727b0a9d3 Mon Sep 17 00:00:00 2001 From: Aaron Wells Date: Wed, 14 Sep 2016 10:22:38 +1200 Subject: [PATCH] Adding direct link to jenkins console, for failed Behat tests --- jenkins/mahara_jenkins.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/jenkins/mahara_jenkins.php b/jenkins/mahara_jenkins.php index 67a50c5..f0f818f 100755 --- a/jenkins/mahara_jenkins.php +++ b/jenkins/mahara_jenkins.php @@ -28,6 +28,7 @@ $GERRIT_BRANCH = getenv('GERRIT_BRANCH'); $GERRIT_CHANGE_ID = getenv('GERRIT_CHANGE_ID'); $GERRIT_PATCHSET_REVISION = getenv('GERRIT_PATCHSET_REVISION'); $JOB_NAME = getenv('JOB_NAME'); +$BUILD_URL = getenv('BUILD_URL'); $HOME = getenv('HOME'); /** @@ -345,8 +346,9 @@ echo "########## Run phpunit tests\n"; echo "\n"; passthru_or_die( 'external/vendor/bin/phpunit htdocs/', - "This patch caused one or more phpunit tests to fail.\n\n" - ."Please see the console output on test.mahara.org for details, and fix any failing tests." + "This patch caused one or more phpunit tests to fail.\n\n" + . "Please see the console output on test.mahara.org for details, and fix any failing tests:\n" + . $BUILD_URL . '/console' ); @@ -357,7 +359,8 @@ echo "\n"; passthru_or_die( 'test/behat/mahara_behat.sh runheadless', "This patch caused one or more Behat tests to fail.\n\n" - ."Please see the console output on test.mahara.org for details, and fix any failing tests." + . "Please see the console output on test.mahara.org for details, and fix any failing tests:\n" + . $BUILD_URL . '/console' ); exit(0); -- 2.22.0