Ejemplo n.º 1
0
 /**
  * copies some basic informations to the build object
  * @param Xinc::Core::Build::BuildInterface
  */
 protected function setupBuildProperties(BuildInterface $build)
 {
     $project = $build->getProject();
     $build->setProperty('project.name', $project->getName());
     $build->setProperty('build.number', $build->getNumber());
     $build->setProperty('build.label', $build->getLabel());
 }
Ejemplo n.º 2
0
 /**
  * Return the label for this build.
  *
  * @param Xinc_Build_Interface $build
  *
  * @return string
  */
 public function getLabel(BuildInterface $build)
 {
     $buildNo = $build->getNumber();
     if ($buildNo == null) {
         $buildNo = $this->_firstBuild;
     }
     $buildLabel = $this->_prefix . $buildNo;
     $build->setProperty('build.label', $buildLabel);
     return $buildLabel;
 }