Skip to main content
A PipelineRun represents a single execution of a Pipeline. PipelineRuns instantiate Pipelines and create TaskRuns for each task in the pipeline.

Resource Definition

string
required
tekton.dev/v1
string
required
PipelineRun
ObjectMeta
required
Standard Kubernetes metadata.
PipelineRunSpec
required
Defines the desired state of the PipelineRun.
PipelineRunStatus
Defines the observed state of the PipelineRun.

PipelineRunSpec

PipelineRef
Reference to the Pipeline to execute. Mutually exclusive with pipelineSpec.
PipelineSpec
Inline Pipeline specification. Mutually exclusive with pipelineRef.Can be disabled with the disable-inline-spec feature flag.
[]Param
Parameters to pass to the Pipeline.See Parameter Types for details.
[]WorkspaceBinding
Workspace bindings for the Pipeline.See Workspace Types for details.
TimeoutFields
Timeout configuration for the PipelineRun.Constraint: pipelinetasks + finally
string
Control the execution state of the PipelineRun.Values:
  • Cancelled - Cancel immediately
  • CancelledRunFinally - Cancel but run finally tasks
  • StoppedRunFinally - Stop gracefully and run finally tasks
  • PipelineRunPending - Hold execution until set to empty string
PipelineTaskRunTemplate
Template configuration applied to all TaskRuns created by this PipelineRun.
[]PipelineTaskRunSpec
Specifications for individual tasks in the pipeline.

PipelineRunStatus

[]Condition
Conditions describing the current state.
Time
When the PipelineRun started.
Time
When the PipelineRun completed.
Time
When finally tasks began executing.
PipelineSpec
The resolved Pipeline specification that was executed.
[]ChildStatusReference
References to TaskRuns and Runs created by this PipelineRun.
[]PipelineRunResult
Results produced by the Pipeline.
[]SkippedTask
Tasks that were skipped.

Example