pub struct EvgProject {Show 14 fields
pub buildvariants: Vec<BuildVariant>,
pub tasks: Vec<EvgTask>,
pub task_groups: Option<Vec<EvgTaskGroup>>,
pub functions: HashMap<String, FunctionDefinition>,
pub pre: Option<Vec<EvgCommand>>,
pub post: Option<Vec<EvgCommand>>,
pub timeout: Option<Vec<EvgCommand>>,
pub modules: Option<Vec<EvgModule>>,
pub stepback: Option<bool>,
pub pre_error_fails_task: Option<bool>,
pub oom_tracker: Option<bool>,
pub command_type: Option<EvgCommandType>,
pub ignore: Option<Vec<String>>,
pub parameters: Option<Vec<EvgParameter>>,
}Expand description
Description of an Evergreen Project.
Fields§
§buildvariants: Vec<BuildVariant>List of build variants belonging to this landscape.
tasks: Vec<EvgTask>List of task definitions.
task_groups: Option<Vec<EvgTaskGroup>>List of task group definitions.
functions: HashMap<String, FunctionDefinition>Definitions of functions belonging to this landscape.
pre: Option<Vec<EvgCommand>>List of commands to run at the start of each task.
post: Option<Vec<EvgCommand>>List of commands to run at the end of each task.
timeout: Option<Vec<EvgCommand>>List of commands to run whenever a task hits a timeout.
modules: Option<Vec<EvgModule>>Description of modules to include in this landscape.
stepback: Option<bool>Describe if skipped tasks should be run on failures to determine source of failure.
pre_error_fails_task: Option<bool>Describe if failures in pre commands should cause a task to be failed.
oom_tracker: Option<bool>Describe if evergreen should track out of memory failure in this landscape.
command_type: Option<EvgCommandType>Describe the type of failure a task failure should trigger.
ignore: Option<Vec<String>>List of globs that describe file changes that won’t trigger a new build.
parameters: Option<Vec<EvgParameter>>Parameters that can be specified to customize patch build functionality.
Implementations§
Source§impl EvgProject
impl EvgProject
Sourcepub fn from_yaml_str(yaml_contents: &str) -> Result<EvgProject, Box<dyn Error>>
pub fn from_yaml_str(yaml_contents: &str) -> Result<EvgProject, Box<dyn Error>>
Parse the given YAML string into an Evergreen Project.
Sourcepub fn build_variant_map(&self) -> HashMap<String, &BuildVariant>
pub fn build_variant_map(&self) -> HashMap<String, &BuildVariant>
Build a map of the defined build variants.
Sourcepub fn task_def_map(&self) -> HashMap<String, &EvgTask>
pub fn task_def_map(&self) -> HashMap<String, &EvgTask>
Build a map of the defined tasks.