Differential D19085 Diff 45745 src/applications/harbormaster/step/HarbormasterBuildkiteBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/HarbormasterBuildkiteBuildStepImplementation.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | EOTEXT | ||||
| $hook_uri); | $hook_uri); | ||||
| } | } | ||||
| public function execute( | public function execute( | ||||
| HarbormasterBuild $build, | HarbormasterBuild $build, | ||||
| HarbormasterBuildTarget $build_target) { | HarbormasterBuildTarget $build_target) { | ||||
| $viewer = PhabricatorUser::getOmnipotentUser(); | $viewer = PhabricatorUser::getOmnipotentUser(); | ||||
| if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | |||||
| $this->logSilencedCall($build, $build_target, pht('Buildkite')); | |||||
| throw new HarbormasterBuildFailureException(); | |||||
| } | |||||
| $buildable = $build->getBuildable(); | $buildable = $build->getBuildable(); | ||||
| $object = $buildable->getBuildableObject(); | $object = $buildable->getBuildableObject(); | ||||
| if (!($object instanceof HarbormasterBuildkiteBuildableInterface)) { | if (!($object instanceof HarbormasterBuildkiteBuildableInterface)) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht('This object does not support builds with Buildkite.')); | pht('This object does not support builds with Buildkite.')); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines | |||||