From 80cd741d266a35d667104268a8a56d8449b81b6c Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 8 May 2014 13:18:21 +0200 Subject: [PATCH] Added capability guessing for Jenkins Replaces #140 --- .../ServiceContainer/Driver/Selenium2Factory.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php b/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php index 1a25836..43da05e 100644 --- a/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php +++ b/src/Behat/MinkExtension/ServiceContainer/Driver/Selenium2Factory.php @@ -66,6 +66,12 @@ class Selenium2Factory implements DriverFactory 'build' => getenv('TRAVIS_BUILD_NUMBER'), 'tags' => array('Travis-CI', 'PHP '.phpversion()), ); + } elseif (getenv('JENKINS_HOME')) { + $guessedCapabilities = array( + 'tunnel-identifier' => getenv('JOB_NAME'), + 'build' => getenv('BUILD_NUMBER'), + 'tags' => array('Jenkins', 'PHP '.phpversion(), getenv('BUILD_TAG')), + ); } else { $guessedCapabilities = array( 'tags' => array(php_uname('n'), 'PHP '.phpversion()),