EvgProject

Struct EvgProject 

Source
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

Source

pub fn from_yaml_str(yaml_contents: &str) -> Result<EvgProject, Box<dyn Error>>

Parse the given YAML string into an Evergreen Project.

Source

pub fn build_variant_map(&self) -> HashMap<String, &BuildVariant>

Build a map of the defined build variants.

Source

pub fn task_def_map(&self) -> HashMap<String, &EvgTask>

Build a map of the defined tasks.

Trait Implementations§

Source§

impl Debug for EvgProject

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EvgProject

Source§

fn default() -> EvgProject

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EvgProject

Source§

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 Serialize for EvgProject

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,