You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: create/remote-pipelines-tasks-resolvers.adoc
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,11 @@ Hub resolver:: Retrieves a task, pipeline, or `StepAction` definition from the P
20
20
Bundles resolver:: Retrieves a task, pipeline, or `StepAction` definition from a Tekton bundle, which is an OCI image available from any OCI repository, such as an OpenShift container repository.
21
21
Git resolver:: Retrieves a task, pipeline, or `StepAction` definition from a Git repository. You must specify the repository, the branch, and the path.
22
22
HTTP resolver:: Retrieves a task, pipeline, or `StepAction` definition from a remote HTTP or HTTPS URL. You must specify the URL for authentication.
23
-
Cluster resolver:: Retrieves a task or pipeline that is already created on the same {OCP} cluster in a specific namespace.
24
-
+
25
-
[NOTE]
26
-
====
27
-
In {pipelines-shortname} version {pipelines-version-number}, the cluster resolver does not support retrieving `StepAction` definitions.
28
-
====
23
+
Cluster resolver:: Retrieves a task, pipeline, or `StepAction` definition that is already created on the same {OCP} cluster in a specific namespace.
29
24
30
25
An {pipelines-shortname} installation includes a set of standard tasks that you can use in your pipelines. These tasks are located in the {pipelines-shortname} installation namespace, which is normally the `openshift-pipelines` namespace. You can use the cluster resolver to access the tasks.
31
26
32
-
{pipelines-shortname} also provides a standard `StepAction` definition. You can use the HTTP resolver to access this definition.
27
+
{pipelines-shortname} also provides a standard `StepAction` definition. You can use the cluster resolver to access this definition.
33
28
34
29
[id="resolver-hub_{context}"]
35
30
== Specifying a remote pipeline, task, or step action from a Tekton catalog
== Specifying a pipelineor task from the same cluster
75
+
== Specifying a pipeline, task, or step action from the same cluster
81
76
82
-
You can use the cluster resolver to specify a pipelineor task that is defined in a namespace on the {OCP} cluster where {pipelines-title} is running.
77
+
You can use the cluster resolver to specify a pipeline, task, or `StepAction` definition that is defined in a namespace on the {OCP} cluster where {pipelines-title} is running.
83
78
84
79
In particular, you can use the cluster resolver to access tasks that {pipelines-shortname} provides in its installation namespace, which is normally the `openshift-pipelines` namespace.
= Specifying a pipelineor task from the same cluster using the cluster resolver
7
+
= Specifying a pipeline, task, or step action from the same cluster using the cluster resolver
8
8
9
-
When creating a pipeline run, you can specify a pipeline that exists on the same cluster. When creating a pipeline or a task run, you can specify a task that exists on the the same cluster.
9
+
When creating a pipeline run, you can specify a pipeline that exists on the same cluster. When creating a pipeline or a task run, you can specify a task that exists on the the same cluster. When creating a step within a task, you can specify a `StepAction` definition that exists on the the same cluster.
10
10
11
11
.Procedure
12
12
13
-
* To specify a pipelineor task from the same cluster, use the following reference format in the `pipelineRef`or `taskRef` spec:
13
+
* To specify a pipeline, task, or `StepAction` definition from the same cluster, use the following reference format in the `pipelineRef`, `taskRef`, or `step.ref` spec:
14
14
+
15
15
[source,yaml]
16
16
----
@@ -22,7 +22,7 @@ When creating a pipeline run, you can specify a pipeline that exists on the same
22
22
- name: namespace
23
23
value: <namespace>
24
24
- name: kind
25
-
value: [pipeline|task]
25
+
value: [pipeline|task|stepaction]
26
26
# ...
27
27
----
28
28
+
@@ -118,3 +118,28 @@ spec:
118
118
- name: sample-task-parameter
119
119
value: test
120
120
----
121
+
122
+
The following example task includes a step that references a `StepAction` definition from the same cluster:
Copy file name to clipboardExpand all lines: modules/op-resolver-stepactions-ref.adoc
+10-17Lines changed: 10 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,14 @@
6
6
[id="resolver-stepactions-ref_{context}"]
7
7
= Step action provided with {pipelines-shortname}
8
8
9
-
{pipelines-shortname} provides a standard `StepAction` definition that you can use in your tasks. Use the HTTP resolver to reference this definition.
9
+
{pipelines-shortname} provides a standard `StepAction` definition that you can use in your tasks. Use the cluster resolver to reference this definition.
10
10
11
11
[discrete]
12
12
[id="op-stepaction-git-clone_{context}"]
13
13
== git-clone
14
14
15
15
The `git-clone` step action uses Git to initialize and clone a remote repository on a workspace. You can use this step action to define a task that clones a repository at the start of a pipeline that builds or otherwise processes this source code.
16
16
17
-
To reference this step action in a task, use the HTTP resolver with the following URL:
0 commit comments