BuildMetadata

Struct BuildMetadata 

Source
pub struct BuildMetadata {
    pub id: String,
    pub name: Option<String>,
    pub job_name: Option<String>,
    pub pipeline_name: Option<String>,
    pub pipeline_instance_vars: Option<Map<String, Value>>,
    pub team_name: String,
    pub atc_external_url: String,
}
Expand description

When used in a “get” or “put” step, metadata about the running build is made available via environment variables.

If the build is a one-off, name, job_name, pipeline_name, and pipeline_instance_vars will be None. pipeline_instance_vars will also be None if the build’s pipeline is not a pipeline instance (i.e. it is a regular pipeline).

Concourse documentation

Fields§

§id: String

The internal identifier for the build. Right now this is numeric but it may become a guid in the future. Treat it as an absolute reference to the build.

§name: Option<String>

The build number within the build’s job.

§job_name: Option<String>

The name of the build’s job.

§pipeline_name: Option<String>

The pipeline that the build’s job lives in.

§pipeline_instance_vars: Option<Map<String, Value>>

The pipeline’s instance vars, used to differentiate pipeline instances.

§team_name: String

The team that the build belongs to.

§atc_external_url: String

The public URL for your ATC; useful for debugging.

Trait Implementations§

Source§

impl Debug for BuildMetadata

Source§

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

Formats the value using the given formatter. 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.