Added capability guessing for Jenkins

Replaces #140
This commit is contained in:
Christophe Coevoet
2014-05-08 13:18:21 +02:00
parent 84bccc838c
commit 80cd741d26

View File

@@ -66,6 +66,12 @@ class Selenium2Factory implements DriverFactory
'build' => getenv('TRAVIS_BUILD_NUMBER'), 'build' => getenv('TRAVIS_BUILD_NUMBER'),
'tags' => array('Travis-CI', 'PHP '.phpversion()), '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 { } else {
$guessedCapabilities = array( $guessedCapabilities = array(
'tags' => array(php_uname('n'), 'PHP '.phpversion()), 'tags' => array(php_uname('n'), 'PHP '.phpversion()),