Esempio n. 1
0
 public function getLockFile() : LockFile
 {
     if (null === ($lockFile = parent::getLockFile())) {
         throw new \RuntimeException('Lock file not found.');
     }
     return $lockFile;
 }
 public function populateGraphTemplate(&$tpl)
 {
     if (!is_array($tpl)) {
         throw new Exception('Invalid template argument, array expected');
     }
     parent::populateGraphTemplate($tpl);
     $tpl['is_unstable'] = true;
 }
 public function populateGraphTemplate(&$tpl)
 {
     if (!is_array($tpl)) {
         throw new Exception('Invalid template argument, array expected');
     }
     parent::populateGraphTemplate($tpl);
     $build = FrontController::fc()->findPlugin('BuildRepository')->buildByUniqueId($this->buildId);
     if ($build instanceof BuildEvent) {
         $tpl['build_startdate'] = date(DATE_ATOM, $build->startDate());
         $tpl['build_uniqueid'] = $this->buildId;
     }
 }
Esempio n. 4
0
 public final function isLoaded()
 {
     return parent::isLoaded();
 }