예제 #1
0
 /**
  * Launch remote job
  * @param ContinuousIntegration $ci
  * @return mixed
  */
 public function launchJob(ContinuousIntegration $ci)
 {
     // Fast Return in case of server stopped
     if (!$this->isServerAvailable()) {
         return null;
     }
     if (!$ci->isParametrized()) {
         $job = $this->jenkinsClient->launchJob($ci->getCiName());
     } else {
         $job = $this->jenkinsClient->launchJob($ci->getCiName(), $ci->getParameters());
     }
     return $job;
 }