1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use serde::Deserialize;

use crate::helpers::Class;

use super::{BuildableJob, Job};
use crate::action::CommonAction;
use crate::build::{ShortBuild, WorkflowRun};
use crate::property::CommonProperty;
use crate::queue::ShortQueueItem;

use super::{BallColor, HealthReport};

job_buildable_with_common_fields_and_impl!(
    /// A pipeline project
    #[derive(Deserialize, Debug)]
    #[serde(rename_all = "camelCase")]
    pub struct WorkflowJob<BuildType = WorkflowRun> {
        /// Description of the job
        pub description: String,
        /// Is concurrent build enabled for the job?
        pub concurrent_build: bool,
    }
);
register_class!("org.jenkinsci.plugins.workflow.job.WorkflowJob" => WorkflowJob);

impl BuildableJob for WorkflowJob {}