Pipelines concepts
The Custom Resource Definitions (CRDs) provided by OpenShift Pipelines include: Task
,Pipeline
,PipelineRun
, TaskRun
, and PipelineResource
.
-
A
Task
is the smallest configurable unit in aPipeline
and is essentially a function of inputs and outputs that inform thePipeline
build. It can run individually or as a part of aPipeline
. APipeline
includes one or moreTasks
, with aTask
consisting of one or more steps. Steps are a series of commands that are sequentially executed by theTask
. -
A
Pipeline
is a series ofTasks
that are executed to build complex workflows that automate the build, deployment and delivery of applications. It is a collection ofPipelineResources
,Parameters
, and one or moreTasks
. APipeline
interacts with the outside world, by usingPipelineResources
, which are given toTasks
as inputs and outputs. -
A
PipelineRun
is used to run and manage the execution of thePipeline
.PipelineRun
initiates the creation of aTaskRun
for eachTask
being executed in thePipeline
. -
TaskRun
is auto-created by aPipelineRun
for eachTask
in aPipeline
and results from running an instance of aTask
. It can also be manually created if aTask
runs outside of aPipeline
. -
A
PipelineResource
is an object that is used as an input and output for pipelineTasks
. For example, if an input is a Git repository and an output is a container image built from that Git repository, these are both classified asPipelineResources
.PipelineResources
currently support Git Resources, Image Resources, Cluster Resources, and Storage Resources.
Additional resources
-
For more information on pipeline concepts, see the Tekton documentation.