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: modules/op-constructing-pipelines-using-pipeline-builder.adoc
+23-16Lines changed: 23 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,32 +27,39 @@ The *Pipeline builder* view supports a limited number of fields whereas the *YAM
27
27
.YAML view
28
28
image::op-pipeline-yaml.png[]
29
29
+
30
-
To configure your pipeline using the *Pipeline Builder*:
30
+
Configure your pipeline using the *Pipeline Builder*:
31
31
32
-
.. Enter a unique name for the pipeline.
33
-
.. Select a task from the *Select Task* list to add a task to the pipeline. This example uses the *s2i-nodejs* task.
32
+
.. In the *Name* field, enter a unique name for the pipeline.
33
+
.. In the *Tasks* section, select a task from the *Select Task* list to add a task to the pipeline. In this example, use the *s2i-nodejs* task.
34
34
*** To add sequential tasks to the pipeline, click the plus icon to the right or left of the task, and from the *Select Task* list, select the task you want to add to the pipeline. For this example, use the plus icon to the right of the *s2i-nodejs* task to add an *openshift-client* task.
35
35
*** To add a parallel task to the existing task, click the plus icon displayed next to the task, and from the *Select Task* list, select the parallel task you want to add to the pipeline.
36
36
+
37
37
.Pipeline Builder
38
38
image::op-pipeline-builder.png[]
39
39
+
40
-
.. Click *Add Resources* to specify the name and type of resources that the pipeline run will use. These resources are then used by the tasks in the pipeline as inputs and outputs.
41
-
For this example:
40
+
.. In the *Resources* section, click *Add Resources* to specify the name and type of resources for the pipeline run. These resources are then used by the tasks in the pipeline as inputs and outputs. For this example:
42
41
... Add an input resource. In the *Name* field, enter `Source`, and then from the *Resource Type* drop-down list, select *Git*.
43
42
... Add an output resource. In the *Name* field, enter `Img`, and then from the *Resource Type* drop-down list, select *Image*.
44
-
.. Optional: The *Parameters* for a task are prepopulated based on the specifications of the task. If required, use the *Add Parameters* link to add additional parameters.
45
43
+
46
-
.. A *Missing Resources* warning is displayed on a task if the resources for the task are not specified. Click the *s2i-nodejs* task to see the side panel with details for the task.
47
-
+
48
-
.Tasks details in Pipelines Builder
49
-
image::op-pipeline-builder-task-details.png[]
44
+
[NOTE]
45
+
====
46
+
A red icon appears next to the task if a resource is missing.
47
+
====
50
48
+
51
-
.. In the task side panel, specify the resources and parameters for the *s2i-nodejs* task:
49
+
.. Optional: The *Parameters* for a task are pre-populated based on the specifications of the task. If required, use the *Add Parameters* link in the *Parameters* section to add additional parameters.
50
+
51
+
.. In the *Workspaces* section, click *Add workspace* and enter a unique workspace name in the *Name* field. You can add multiple workspaces to the pipeline.
52
+
53
+
.. In the *Tasks* section, click the *s2i-nodejs* task to see the side panel with details for the task. In the task side panel, specify the resources and parameters for the *s2i-nodejs* task:
54
+
55
+
... If required, in the *Parameters* section, add more parameters to the default ones, by using the $(params.<param-name>) syntax.
56
+
... In the *Image* section, enter `Img` as specified in the *Resources* section.
57
+
... Select a workspace from the *source* drop-down under *Workspaces* section.
58
+
59
+
.. Add resources, parameters, and workspaces to the *openshift-client* task.
52
60
53
-
... In the *Input Resources* -> *Source* section, the *Select Resources* drop-down list displays the resources that you added to the pipeline. For this example, select *Source*.
54
-
... In the *Output Resources* -> *Image* section, click the *Select Resources* list, and select *Img*.
55
-
... If required, in the *Parameters* section, add more parameters to the default ones, by using the `$(params.<param-name>)` syntax.
56
-
... Similarly, add an input resource for the *openshift-client* task.
57
61
. Click *Create* to create and view the pipeline in the *Pipeline Details* page.
58
-
. Click the *Actions* drop-down menu, and then click *Start* to start the Pipeline.
62
+
63
+
. Click the *Actions* drop-down menu then click *Start*, to see the *Start Pipeline* page.
64
+
65
+
. The *Workspaces* section lists the workspaces you created earlier. Use the respective drop-down to specify the volume source for your workspace. You have the following options: *Empty Directory*, *Config Map*, *Secret*, *PersistentVolumeClaim*, or *VolumeClaimTemplate*.
0 commit comments