Skip to main content

BuildAgent

Trait BuildAgent 

Source
pub trait BuildAgent {
    // Required methods
    fn name(&self) -> &'static str;
    fn set_output_variable(&self, name: &str, value: &str) -> Vec<String>;

    // Provided methods
    fn set_build_number(&self, vars: &VersionVariables) -> String { ... }
    fn write_integration(
        &self,
        vars: &VersionVariables,
        update_build_number: bool,
    ) -> Vec<String> { ... }
}
Expand description

Common interface for build agents.

Required Methods§

Source

fn name(&self) -> &'static str

Agent name matching the original class name (GetType().Name).

Source

fn set_output_variable(&self, name: &str, value: &str) -> Vec<String>

Returns the output lines for a single variable.

Provided Methods§

Source

fn set_build_number(&self, vars: &VersionVariables) -> String

Returns the build-number line (typically FullSemVer). Returns an empty string for CIs that don’t support it.

Source

fn write_integration( &self, vars: &VersionVariables, update_build_number: bool, ) -> Vec<String>

Returns the full integration output (including log lines).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§