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-about-tasks.adoc
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
_Tasks_ are the building blocks of a Pipeline and consist of sequentially executed Steps. Tasks are reusable and can be used in multiple Pipelines.
9
9
10
-
_Steps_ are a series of commands that achieve a specific goal, such as building an image. Every Task runs as a pod and each Step runs in its own container within the same pod. Because Steps run within the same pod, they have access to the same volumes for caching files, ConfigMaps, and Secrets.
10
+
_Steps_ are a series of commands that achieve a specific goal, such as building an image. Every Task runs as a pod, and each Step runs as a container within that pod. Because Steps run within the same pod, they can access the same volumes for caching files, config maps, and secrets.
11
11
12
12
The following example shows the `apply-manifests` Task.
13
13
@@ -32,15 +32,13 @@ spec: <4>
32
32
command: ["/bin/bash", "-c"]
33
33
args:
34
34
- |-
35
-
echo Applying manifests in $(inputs.params.manifest_dir) directory
36
-
oc apply -f $(inputs.params.manifest_dir)
35
+
echo Applying manifests in $(params.manifest_dir) directory
36
+
oc apply -f $(params.manifest_dir)
37
37
echo -----------------------------------
38
38
----
39
-
<1> Task API version `v1beta1`.
40
-
<2> Specifies the type of Kubernetes object. In this example, `Task`.
41
-
<3> Unique name of this Task.
42
-
<4> Lists the parameters and Steps in the Task and the workspace used by the Task.
39
+
<1> The Task API version, `v1beta1`.
40
+
<2> The type of Kubernetes object, `Task`.
41
+
<3> The unique name of this Task.
42
+
<4> The list of parameters and Steps in the Task and the workspace used by the Task.
43
43
44
-
This Task starts the pod and runs a container inside that pod using the `maven:3.6.0-jdk-8-slim` image to run the specified commands. It receives an input directory called `workspace-git` that contains the source code of the application.
45
-
46
-
The Task only declares the placeholder for the Git repository, it does not specify which Git repository to use. This allows Tasks to be reusable for multiple Pipelines and purposes.
44
+
This Task starts the pod and runs a container inside that pod using the specified image to run the specified commands.
0 commit comments