Pipelines concepts
The Custom Resource Definitions (CRDs) provided by OpenShift Pipelines include: Task,Pipeline,PipelineRun, TaskRun, and PipelineResource.
-
A
Taskis the smallest configurable unit in aPipelineand is essentially a function of inputs and outputs that inform thePipelinebuild. It can run individually or as a part of aPipeline. APipelineincludes one or moreTasks, with aTaskconsisting of one or more steps. Steps are a series of commands that are sequentially executed by theTask. -
A
Pipelineis a series ofTasksthat 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. APipelineinteracts with the outside world, by usingPipelineResources, which are given toTasksas inputs and outputs. -
A
PipelineRunis used to run and manage the execution of thePipeline.PipelineRuninitiates the creation of aTaskRunfor eachTaskbeing executed in thePipeline. -
TaskRunis auto-created by aPipelineRunfor eachTaskin aPipelineand results from running an instance of aTask. It can also be manually created if aTaskruns outside of aPipeline. -
A
PipelineResourceis 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.PipelineResourcescurrently support Git Resources, Image Resources, Cluster Resources, and Storage Resources.
Additional resources
-
For more information on pipeline concepts, see the Tekton documentation.