pub trait StepExecutor {
// Required method
fn run(&self, input: ExecutorInput) -> Result<StepResult, PluginError>;
}Expand description
Implemented by step-executor plugins. The host calls
StepExecutor::run exactly once per step; the plugin returns a
StepResult or a PluginError.
During the call the plugin may stream logs via
crate::host::emit_step_log and check cancellation via
crate::host::should_cancel.
Required Methods§
Sourcefn run(&self, input: ExecutorInput) -> Result<StepResult, PluginError>
fn run(&self, input: ExecutorInput) -> Result<StepResult, PluginError>
Execute a single step.
§Errors
Returns a PluginError describing the failure. The host
converts errors into build events and a non-zero step exit.