Struct jenkins_api::job::WorkflowJob
source · pub struct WorkflowJob {Show 25 fields
pub name: String,
pub display_name: String,
pub full_display_name: String,
pub full_name: String,
pub display_name_or_null: Option<String>,
pub url: String,
pub color: BallColor,
pub buildable: bool,
pub keep_dependencies: bool,
pub next_build_number: u32,
pub in_queue: bool,
pub actions: Vec<Option<CommonAction>>,
pub last_build: Option<ShortBuild<WorkflowRun>>,
pub first_build: Option<ShortBuild<WorkflowRun>>,
pub last_stable_build: Option<ShortBuild<WorkflowRun>>,
pub last_unstable_build: Option<ShortBuild<WorkflowRun>>,
pub last_successful_build: Option<ShortBuild<WorkflowRun>>,
pub last_unsuccessful_build: Option<ShortBuild<WorkflowRun>>,
pub last_completed_build: Option<ShortBuild<WorkflowRun>>,
pub last_failed_build: Option<ShortBuild<WorkflowRun>>,
pub builds: Vec<ShortBuild>,
pub health_report: Vec<HealthReport>,
pub queue_item: Option<ShortQueueItem>,
pub description: String,
pub concurrent_build: bool,
/* private fields */
}
Expand description
A pipeline project
Fields§
§name: String
Name of the job
display_name: String
Display Name of the job
full_display_name: String
Full Display Name of the job
full_name: String
Full Name of the job
display_name_or_null: Option<String>
Display Name of the job
url: String
URL for the job
color: BallColor
Ball Color for the status of the job
buildable: bool
Is the job buildable?
keep_dependencies: bool
Are dependencies kept for this job?
next_build_number: u32
Next build number
in_queue: bool
Is this job currently in build queue
actions: Vec<Option<CommonAction>>
Actions of a job
last_build: Option<ShortBuild<WorkflowRun>>
Link to the last build
first_build: Option<ShortBuild<WorkflowRun>>
Link to the first build
last_stable_build: Option<ShortBuild<WorkflowRun>>
Link to the last stable build
last_unstable_build: Option<ShortBuild<WorkflowRun>>
Link to the last unstable build
last_successful_build: Option<ShortBuild<WorkflowRun>>
Link to the last successful build
last_unsuccessful_build: Option<ShortBuild<WorkflowRun>>
Link to the last unsucressful build
last_completed_build: Option<ShortBuild<WorkflowRun>>
Link to the last complete build
last_failed_build: Option<ShortBuild<WorkflowRun>>
Link to the last failed build
builds: Vec<ShortBuild>
List of builds of the job
health_report: Vec<HealthReport>
HealthReport of the job
queue_item: Option<ShortQueueItem>
Queue item of this job if it’s waiting
description: String
Description of the job
concurrent_build: bool
Is concurrent build enabled for the job?
Trait Implementations§
source§impl BuildableJob for WorkflowJob
impl BuildableJob for WorkflowJob
source§impl Class for WorkflowJob
impl Class for WorkflowJob
source§fn with_class() -> &'static str
fn with_class() -> &'static str
Should reply the _class provided by Jenkins for a type
source§impl Debug for WorkflowJob
impl Debug for WorkflowJob
source§impl<'de> Deserialize<'de> for WorkflowJob
impl<'de> Deserialize<'de> for WorkflowJob
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Job for WorkflowJob
impl Job for WorkflowJob
source§fn enable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
fn enable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
Enable a
Job
. It may need to be refreshed as it may have been updatedsource§fn disable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
fn disable(&self, jenkins_client: &Jenkins) -> Result<(), Error>
Disable a
Job
. It may need to be refreshed as it may have been updated