Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/build/HarbormasterBuild.php
Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Lines | public function retrieveVariablesFromBuild() { | ||||
$results['step.timestamp'] = time(); | $results['step.timestamp'] = time(); | ||||
$results['build.id'] = $this->getID(); | $results['build.id'] = $this->getID(); | ||||
return $results; | return $results; | ||||
} | } | ||||
public static function getAvailableBuildVariables() { | public static function getAvailableBuildVariables() { | ||||
$objects = id(new PhutilSymbolLoader()) | $objects = id(new PhutilClassMapQuery()) | ||||
->setAncestorClass('HarbormasterBuildableInterface') | ->setAncestorClass('HarbormasterBuildableInterface') | ||||
->loadObjects(); | ->execute(); | ||||
$variables = array(); | $variables = array(); | ||||
$variables[] = array( | $variables[] = array( | ||||
'step.timestamp' => pht('The current UNIX timestamp.'), | 'step.timestamp' => pht('The current UNIX timestamp.'), | ||||
'build.id' => pht('The ID of the current build.'), | 'build.id' => pht('The ID of the current build.'), | ||||
'target.phid' => pht('The PHID of the current build target.'), | 'target.phid' => pht('The PHID of the current build target.'), | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |