예제 #1
0
 /**
  * Get remote job progression
  * @param ContinuousIntegration $ci
  * @return mixed
  */
 public function getProgression(ContinuousIntegration $ci)
 {
     // Fast Return in case of server stopped
     if (!$this->isServerAvailable()) {
         return null;
     }
     $build = $this->jenkinsClient->getJob($ci->getCiName())->getBuilds()[0];
     $progress = $build->getProgress();
     //        dump($progress);
     return $progress;
 }