Differential D8599 Diff 20429 src/applications/harbormaster/step/PublishFragmentBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/PublishFragmentBuildStepImplementation.php
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | if ($settings['artifact'] === null || | ||||
return false; | return false; | ||||
} | } | ||||
// TODO: Check if the file artifact is provided by previous build steps. | // TODO: Check if the file artifact is provided by previous build steps. | ||||
return true; | return true; | ||||
} | } | ||||
public function getArtifactInputs() { | |||||
return array( | |||||
array( | |||||
'name' => pht('Publishes File'), | |||||
'key' => $this->getSetting('artifact'), | |||||
'type' => HarbormasterBuildArtifact::TYPE_FILE, | |||||
), | |||||
); | |||||
} | |||||
public function getSettingDefinitions() { | public function getSettingDefinitions() { | ||||
return array( | return array( | ||||
'path' => array( | 'path' => array( | ||||
'name' => 'Path', | 'name' => 'Path', | ||||
'description' => | 'description' => | ||||
'The path of the fragment that will be published.', | 'The path of the fragment that will be published.', | ||||
'type' => BuildStepImplementation::SETTING_TYPE_STRING), | 'type' => BuildStepImplementation::SETTING_TYPE_STRING), | ||||
'artifact' => array( | 'artifact' => array( | ||||
'name' => 'File Artifact', | 'name' => 'File Artifact', | ||||
'description' => | 'description' => | ||||
'The file artifact that will be published to Phragment.', | 'The file artifact that will be published to Phragment.', | ||||
'type' => BuildStepImplementation::SETTING_TYPE_ARTIFACT, | 'type' => BuildStepImplementation::SETTING_TYPE_ARTIFACT, | ||||
'artifact_type' => HarbormasterBuildArtifact::TYPE_FILE)); | 'artifact_type' => HarbormasterBuildArtifact::TYPE_FILE)); | ||||
} | } | ||||
} | } |