Skip to content

Commit 903ade2

Browse files
authored
Merge pull request #34004 from rishumehra/wspipe
RHDEDOVS-2835: Document adding workspaces to a pipeline via the Pipeline Builder
2 parents 4c8f3af + 6c71075 commit 903ade2

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

modules/op-constructing-pipelines-using-pipeline-builder.adoc

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,39 @@ The *Pipeline builder* view supports a limited number of fields whereas the *YAM
2727
.YAML view
2828
image::op-pipeline-yaml.png[]
2929
+
30-
To configure your pipeline using the *Pipeline Builder*:
30+
Configure your pipeline using the *Pipeline Builder*:
3131

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.
3434
*** 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.
3535
*** 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.
3636
+
3737
.Pipeline Builder
3838
image::op-pipeline-builder.png[]
3939
+
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:
4241
... Add an input resource. In the *Name* field, enter `Source`, and then from the *Resource Type* drop-down list, select *Git*.
4342
... 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.
4543
+
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+
====
5048
+
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.
5260

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.
5761
. 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

Comments
 (0)