public function __construct(array $conf, $gitDir, $repo) { $jenkinsConf = $conf['jenkins']; if (!array_key_exists('job_name', $jenkinsConf)) { // Default to the repo for convenience $jenkinsConf['job_name'] = $repo; } parent::__construct($jenkinsConf, $gitDir, $repo); }
public function __construct(array $conf, $gitDir, $repo) { $stl_conf = $conf['jenkins']; if (!array_key_exists('job_name', $stl_conf)) { // Default to the repo for convenience $stl_conf['job_name'] = $repo; } parent::__construct($stl_conf, $gitDir, $repo); $this->job = Diesel::create('Bart\\Jenkins\\Job', $stl_conf['host'], $stl_conf['job_name']); }