Beispiel #1
0
 /**
  * Jira Label Hook Action
  */
 public function __construct()
 {
     parent::__construct();
     /** @var \Bart\Jira\JiraClientConfig $jConfigs */
     $jConfigs = Diesel::create('\\Bart\\Jira\\JiraClientConfig');
     $this->jiraClient = Diesel::create('\\chobie\\Jira\\Api', $jConfigs->baseURL(), new Basic($jConfigs->username(), $jConfigs->password()));
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     /** @var JenkinsConfig $jenkinsConfig */
     $jenkinsConfig = Diesel::create('\\Bart\\Jenkins\\JenkinsConfig');
     /** @var Connection $connection */
     $connection = Diesel::create('\\Bart\\Jenkins\\Connection', $jenkinsConfig->domain(), $jenkinsConfig->protocol(), $jenkinsConfig->port());
     $user = $jenkinsConfig->user();
     $token = $jenkinsConfig->token();
     if ($user !== null && $token !== null) {
         $connection->setAuth($user, $token);
     }
     /** @var Job job */
     $this->job = Diesel::create('\\Bart\\Jenkins\\Job', $connection, $jenkinsConfig->jobLocation());
 }
Beispiel #3
0
 public function __construct()
 {
     $this->config = Diesel::create('\\Bart\\GitHook\\GitHookSystemConfig');
     parent::__construct();
 }