Skip to main content

AdoPipeline

Struct AdoPipeline 

Source
pub struct AdoPipeline {
    pub trigger: Option<Value>,
    pub pr: Option<Value>,
    pub variables: Option<AdoVariables>,
    pub stages: Option<Vec<AdoStage>>,
    pub jobs: Option<Vec<AdoJob>>,
    pub steps: Option<Vec<AdoStep>>,
    pub pool: Option<Value>,
    pub workspace: Option<Value>,
    pub resources: Option<AdoResources>,
    pub extends: Option<Value>,
    pub parameters: Option<Vec<AdoParameter>>,
    pub permissions: Option<Value>,
}
Expand description

Top-level ADO pipeline definition. ADO pipelines come in three shapes: (a) stages → jobs → steps (b) jobs → steps (no stages key) (c) steps only (no stages or jobs key)

Fields§

§trigger: Option<Value>§pr: Option<Value>§variables: Option<AdoVariables>§stages: Option<Vec<AdoStage>>

stages: is normally a sequence of stage objects, but real-world pipelines also use stages: ${{ parameters.stages }} (a template expression that resolves at runtime to a list). The custom deserializer accepts both shapes; non-sequence shapes resolve to None and the graph is marked Partial downstream.

§jobs: Option<Vec<AdoJob>>§steps: Option<Vec<AdoStep>>§pool: Option<Value>§workspace: Option<Value>

Pipeline-level workspace: block. The only security-relevant field is clean: (outputs, resources, all, or true), which causes the agent to wipe the workspace between runs. Used to tag self-hosted Image nodes with META_WORKSPACE_CLEAN.

§resources: Option<AdoResources>

resources: block — repository declarations, container declarations, pipeline declarations. We only consume repositories[] today. Pre-2019 ADO accepts a sequence form (resources: [- repo: self]) which has no repositories: key — the custom deserializer accepts both shapes and treats the sequence form as an empty resources block.

§extends: Option<Value>

Top-level extends: directive — extends: { template: x@alias, ... }. Captured raw so we can scan for template: x@alias references that consume a resources.repositories[] entry.

§parameters: Option<Vec<AdoParameter>>

Top-level parameters: declarations. Each entry has at minimum a name; type defaults to string when omitted. values: is an optional allowlist that constrains caller input. ADO accepts two shapes: the typed sequence form (- name: foo \n type: string \n default: bar) and the legacy untyped map form (parameters: { foo: bar, baz: '' }) used in older template fragments. The custom deserializer normalizes both.

§permissions: Option<Value>

Pipeline-level permissions: block. Controls the scope of System.AccessToken for all jobs in the pipeline unless overridden at the job level. Parsed to detect explicit scope restriction (e.g. contents: none) so over_privileged_identity doesn’t fire on pipelines that have already locked down their token.

Trait Implementations§

Source§

impl Debug for AdoPipeline

Source§

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

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

impl<'de> Deserialize<'de> for AdoPipeline

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. 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> Same for T

Source§

type Output = T

Should always be Self
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>,