[][src]Trait jenkins_api::build::Build

pub trait Build {
    type ParentJob: Job;
    fn url(&self) -> &str;

    fn get_job(&self, jenkins_client: &Jenkins) -> Result<Self::ParentJob>
    where
        Self::ParentJob: Deserialize<'de>
, { ... }
fn get_console(&self, jenkins_client: &Jenkins) -> Result<String> { ... } }

Trait implemented by specializations of Build and providing common methods

Associated Types

type ParentJob: Job

Type of the job that triggered this build

Loading content...

Required methods

fn url(&self) -> &str

Get the url of a build

Loading content...

Provided methods

fn get_job(&self, jenkins_client: &Jenkins) -> Result<Self::ParentJob> where
    Self::ParentJob: Deserialize<'de>, 

Get the Job from a Build

fn get_console(&self, jenkins_client: &Jenkins) -> Result<String>

Get the console output from a Build

Loading content...

Implementors

impl Build for BuildFlowRun[src]

type ParentJob = BuildFlowJob

impl Build for CommonBuild[src]

type ParentJob = CommonJob

impl Build for FreeStyleBuild[src]

impl Build for MatrixBuild[src]

type ParentJob = MatrixProject

impl Build for MatrixRun[src]

impl Build for MavenBuild[src]

type ParentJob = MavenModule

impl Build for MavenModuleSetBuild[src]

type ParentJob = MavenModuleSet

impl Build for MultiJobBuild[src]

impl Build for WorkflowRun[src]

type ParentJob = WorkflowJob

Loading content...