Pipeline [tekton.dev/v1]
- 描述
- Pipeline describes a list of Tasks to execute. It expresses how outputs of tasks feed into inputs of subsequent tasks.
- 类型
object
规格
.spec
- 描述
- Spec holds the desired state of the Pipeline from the client
- 类型
object
.spec.finally
- 描述
- Finally declares the list of Tasks that execute just before leaving the Pipeline i.e. either after all Tasks are finished executing successfully or after a failure which would result in ending the Pipeline
- 类型
array
.spec.finally[]
- 描述
- PipelineTask defines a task in a Pipeline, passing inputs from both Params and from the output of previous tasks.
- 类型
object
.spec.finally[].matrix
- 描述
- Matrix declares parameters used to fan out this task.
- 类型
object
.spec.finally[].matrix.include
- 描述
- Include is a list of IncludeParams which allows passing in specific combinations of Parameters into the Matrix.
- 类型
array
.spec.finally[].matrix.include[]
- 描述
- IncludeParams allows passing in a specific combinations of Parameters into the Matrix.
- 类型
object
.spec.finally[].matrix.include[].params
- 描述
- Params takes only `Parameters` of type `"string"` The names of the `params` must match the names of the `params` in the underlying `Task`
- 类型
array
.spec.finally[].matrix.include[].params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.finally[].matrix.params
- 描述
- Params is a list of parameters used to fan out the pipelineTask Params takes only `Parameters` of type `"array"` Each array element is supplied to the `PipelineTask` by substituting `params` of type `"string"` in the underlying `Task`. The names of the `params` in the `Matrix` must match the names of the `params` in the underlying `Task` that they will be substituting.
- 类型
array
.spec.finally[].matrix.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.finally[].params
- 描述
- Parameters declares parameters passed to this task.
- 类型
array
.spec.finally[].params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.finally[].pipelineRef
- 描述
- PipelineRef is a reference to a pipeline definition Note: PipelineRef is in preview mode and not yet supported
- 类型
object
.spec.finally[].pipelineRef.params
- 描述
- Params contains the parameters used to identify the referenced Tekton resource. Example entries might include "repo" or "path" but the set of params ultimately depends on the chosen resolver.
- 类型
array
.spec.finally[].pipelineRef.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.finally[].runAfter
- 描述
- RunAfter is the list of PipelineTask names that should be executed before this Task executes. (Used to force a specific ordering in graph execution.)
- 类型
array
.spec.finally[].runAfter[]
- 类型
string
.spec.finally[].taskRef
- 描述
- TaskRef is a reference to a task definition.
- 类型
object
.spec.finally[].taskRef.params
- 描述
- Params contains the parameters used to identify the referenced Tekton resource. Example entries might include "repo" or "path" but the set of params ultimately depends on the chosen resolver.
- 类型
array
.spec.finally[].taskRef.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.finally[].when
- 描述
- When is a list of when expressions that need to be true for the task to run
- 类型
array
.spec.finally[].when[]
- 描述
- WhenExpression allows a PipelineTask to declare expressions to be evaluated before the Task is run to determine whether the Task should be executed or skipped
- 类型
object
.spec.finally[].when[].values
- 描述
- Values is an array of strings, which is compared against the input, for guard checking It must be non-empty
- 类型
array
.spec.finally[].when[].values[]
- 类型
string
.spec.finally[].workspaces
- 描述
- Workspaces maps workspaces from the pipeline spec to the workspaces declared in the Task.
- 类型
array
.spec.finally[].workspaces[]
- 描述
- WorkspacePipelineTaskBinding describes how a workspace passed into the pipeline should be mapped to a task's declared workspace.
- 类型
object- 必填
name
.spec.params
- 描述
- Params declares a list of input parameters that must be supplied when this Pipeline is run.
- 类型
array
.spec.params[]
- 描述
- ParamSpec defines arbitrary parameters needed beyond typed inputs (such as resources). Parameter values are provided by users as inputs on a TaskRun or PipelineRun.
- 类型
object- 必填
name
.spec.params[].enum
- 描述
- Enum declares a set of allowed param input values for tasks/pipelines that can be validated. If Enum is not set, no input validation is performed for the param.
- 类型
array
.spec.params[].enum[]
- 类型
string
.spec.params[].properties
- 描述
- Properties is the JSON Schema properties to support key-value pairs parameter.
- 类型
object
.spec.results
- 描述
- Results are values that this pipeline can output once run
- 类型
array
.spec.results[]
- 描述
- PipelineResult used to describe the results of a pipeline
- 类型
object- 必填
namevalue
.spec.tasks
- 描述
- Tasks declares the graph of Tasks that execute when this Pipeline is run.
- 类型
array
.spec.tasks[]
- 描述
- PipelineTask defines a task in a Pipeline, passing inputs from both Params and from the output of previous tasks.
- 类型
object
.spec.tasks[].matrix
- 描述
- Matrix declares parameters used to fan out this task.
- 类型
object
.spec.tasks[].matrix.include
- 描述
- Include is a list of IncludeParams which allows passing in specific combinations of Parameters into the Matrix.
- 类型
array
.spec.tasks[].matrix.include[]
- 描述
- IncludeParams allows passing in a specific combinations of Parameters into the Matrix.
- 类型
object
.spec.tasks[].matrix.include[].params
- 描述
- Params takes only `Parameters` of type `"string"` The names of the `params` must match the names of the `params` in the underlying `Task`
- 类型
array
.spec.tasks[].matrix.include[].params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.tasks[].matrix.params
- 描述
- Params is a list of parameters used to fan out the pipelineTask Params takes only `Parameters` of type `"array"` Each array element is supplied to the `PipelineTask` by substituting `params` of type `"string"` in the underlying `Task`. The names of the `params` in the `Matrix` must match the names of the `params` in the underlying `Task` that they will be substituting.
- 类型
array
.spec.tasks[].matrix.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.tasks[].params
- 描述
- Parameters declares parameters passed to this task.
- 类型
array
.spec.tasks[].params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.tasks[].pipelineRef
- 描述
- PipelineRef is a reference to a pipeline definition Note: PipelineRef is in preview mode and not yet supported
- 类型
object
.spec.tasks[].pipelineRef.params
- 描述
- Params contains the parameters used to identify the referenced Tekton resource. Example entries might include "repo" or "path" but the set of params ultimately depends on the chosen resolver.
- 类型
array
.spec.tasks[].pipelineRef.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.tasks[].runAfter
- 描述
- RunAfter is the list of PipelineTask names that should be executed before this Task executes. (Used to force a specific ordering in graph execution.)
- 类型
array
.spec.tasks[].runAfter[]
- 类型
string
.spec.tasks[].taskRef
- 描述
- TaskRef is a reference to a task definition.
- 类型
object
.spec.tasks[].taskRef.params
- 描述
- Params contains the parameters used to identify the referenced Tekton resource. Example entries might include "repo" or "path" but the set of params ultimately depends on the chosen resolver.
- 类型
array
.spec.tasks[].taskRef.params[]
- 描述
- Param declares an ParamValues to use for the parameter called name.
- 类型
object- 必填
namevalue
.spec.tasks[].when
- 描述
- When is a list of when expressions that need to be true for the task to run
- 类型
array
.spec.tasks[].when[]
- 描述
- WhenExpression allows a PipelineTask to declare expressions to be evaluated before the Task is run to determine whether the Task should be executed or skipped
- 类型
object
.spec.tasks[].when[].values
- 描述
- Values is an array of strings, which is compared against the input, for guard checking It must be non-empty
- 类型
array
.spec.tasks[].when[].values[]
- 类型
string
.spec.tasks[].workspaces
- 描述
- Workspaces maps workspaces from the pipeline spec to the workspaces declared in the Task.
- 类型
array
.spec.tasks[].workspaces[]
- 描述
- WorkspacePipelineTaskBinding describes how a workspace passed into the pipeline should be mapped to a task's declared workspace.
- 类型
object- 必填
name
.spec.workspaces
- 描述
- Workspaces declares a set of named workspaces that are expected to be provided by a PipelineRun.
- 类型
array
.spec.workspaces[]
- 描述
- PipelineWorkspaceDeclaration creates a named slot in a Pipeline that a PipelineRun is expected to populate with a workspace binding.
- 类型
object- 必填
name
API 端点
可用的 API 端点如下:
/apis/tekton.dev/v1/namespaces/{namespace}/pipelinesDELETE: delete collection of PipelineGET: list objects of kind PipelinePOST: create a new Pipeline
/apis/tekton.dev/v1/namespaces/{namespace}/pipelines/{name}DELETE: delete the specified PipelineGET: read the specified PipelinePATCH: partially update the specified PipelinePUT: replace the specified Pipeline
/apis/tekton.dev/v1/namespaces/{namespace}/pipelines
- HTTP 方法
DELETE- 描述
- delete collection of Pipeline
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind Pipeline
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new Pipeline
- 查询参数
- 请求体参数
- HTTP 响应
/apis/tekton.dev/v1/namespaces/{namespace}/pipelines/{name}
- HTTP 方法
DELETE- 描述
- delete the specified Pipeline
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified Pipeline
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified Pipeline
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified Pipeline
- 查询参数
- 请求体参数
- HTTP 响应