/** * 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()); }
/** * 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; }