pub struct CommandStep {
pub key: String,
pub label: Option<String>,
pub cmd: String,
pub image: Option<String>,
pub env: Option<BTreeMap<String, String>>,
pub timeout_seconds: Option<u32>,
pub cache: Option<Cache>,
pub runner: Option<String>,
pub runner_args: Option<Value>,
}Expand description
A single build command within a pipeline.
Serialized as a JSON object inside each graph node’s step field.
The key is the unique identifier used to reference this step in
edges and log output.
Fields§
§key: StringUnique identifier for this step within the pipeline.
label: Option<String>Human-readable label shown in build output.
cmd: StringShell command to execute inside the container.
image: Option<String>Docker image to boot from. Root steps without an image inherit
PipelineGraph::default_image; child steps boot from their
parent’s committed snapshot.
env: Option<BTreeMap<String, String>>Per-step environment variables merged on top of the pipeline env.
timeout_seconds: Option<u32>Maximum wall-clock seconds before the step is killed.
cache: Option<Cache>Cache configuration for this step’s committed snapshot.
runner: Option<String>Step-executor plugin name. None falls back to the default
runner (Docker in the shipped configuration).
runner_args: Option<Value>Plugin-specific extra fields passed verbatim to the runner.
Trait Implementations§
Source§impl Clone for CommandStep
impl Clone for CommandStep
Source§fn clone(&self) -> CommandStep
fn clone(&self) -> CommandStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandStep
impl Debug for CommandStep
Source§impl<'de> Deserialize<'de> for CommandStep
impl<'de> Deserialize<'de> for CommandStep
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for CommandStep
impl JsonSchema for CommandStep
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for CommandStep
impl PartialEq for CommandStep
Source§fn eq(&self, other: &CommandStep) -> bool
fn eq(&self, other: &CommandStep) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CommandStep
impl Serialize for CommandStep
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for CommandStep
impl StructuralPartialEq for CommandStep
Auto Trait Implementations§
impl Freeze for CommandStep
impl RefUnwindSafe for CommandStep
impl Send for CommandStep
impl Sync for CommandStep
impl Unpin for CommandStep
impl UnsafeUnpin for CommandStep
impl UnwindSafe for CommandStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.