Skip to content

Commit 00f76f5

Browse files
authored
Merge pull request #30421 from rolfedh/Issue#30364
Issue #30364 remove wrong content from cicd/pipelines/understanding-o…
2 parents e65c88a + 8ca0c17 commit 00f76f5

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

modules/op-about-tasks.adoc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
_Tasks_ are the building blocks of a Pipeline and consist of sequentially executed Steps. Tasks are reusable and can be used in multiple Pipelines.
99

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

1212
The following example shows the `apply-manifests` Task.
1313

@@ -32,15 +32,13 @@ spec: <4>
3232
command: ["/bin/bash", "-c"]
3333
args:
3434
- |-
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)
3737
echo -----------------------------------
3838
----
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.
4343

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

Comments
 (0)