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
27
28
29
30
use helpers::Class;

use super::{BuildableJob, Job, SCMPollable, ShortJob};
use action::CommonAction;
use build::{BuildFlowRun, ShortBuild};
use property::CommonProperty;
use queue::ShortQueueItem;
use scm::CommonSCM;

use super::{BallColor, HealthReport};

job_build_with_common_fields_and_impl!(/// A build flow job
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct BuildFlowJob<BuildType = BuildFlowRun> {
    /// Description of the job
    pub description: String,
    /// Is concurrent build enabled for the job?
    pub concurrent_build: bool,
    /// SCM configured for the job
    pub scm: CommonSCM,
    /// List of the upstream projects
    pub upstream_projects: Vec<ShortJob>,
    /// List of the downstream projects
    pub downstream_projects: Vec<ShortJob>,
});
register_class!("com.cloudbees.plugins.flow.BuildFlow" => BuildFlowJob );

impl BuildableJob for BuildFlowJob {}
impl SCMPollable for BuildFlowJob {}