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
# Variable Substitutions Supported by `Tasks` and `Pipelines`
8
8
9
-
This doc aggregates the complete set of variable substitions available
10
-
in `Tasks` and `Pipelines`.
9
+
This page documents the variable substitions supported by `Tasks` and `Pipelines`.
11
10
12
-
## Variables Available in a Pipeline
11
+
## Variables available in a `Pipeline`
13
12
14
13
| Variable | Description |
15
14
| -------- | ----------- |
16
-
|`params.<param name>`| The value of the param at runtime. |
17
-
|`tasks.<task name>.results.<result name>`| The value of a Task's result (**Note**: Affects Task ordering in a Pipeline!) |
15
+
|`params.<param name>`| The value of the parameter at runtime. |
16
+
|`tasks.<taskName>.results.<resultName>`| The value of the `Task's` result. Can alter `Task` execution order within a `Pipeline`.) |
18
17
19
-
## Variables Available in a Task
18
+
## Variables available in a `Task`
20
19
21
20
| Variable | Description |
22
21
| -------- | ----------- |
23
-
|`params.<param name>`| The value of the param at runtime. |
24
-
|`resources.inputs.<resource name>.path`| The path to the input resource's directory. |
25
-
|`resources.outputs.<resource name>.path`| The path to the output resource's directory. |
26
-
|`results.<result name>.path`| The path to the file where a Task's result should be written. |
27
-
|`workspaces.<workspace name>.path`| The path to the mounted workspace. |
28
-
|`workspaces.<workspace name>.claim`| The name of the PersistentVolumeClaim used as a volume source for the workspace or empty string if a volume source other than PersistentVolumeClaim was used. |
29
-
|`workspaces.<workspace name>.volume`| The name of the volume populating the workspace. |
30
-
|`credentials.path`| The path to the location of credentials written by the `creds-init` init container. |
22
+
|`params.<param name>`| The value of the parameter at runtime. |
23
+
|`resources.inputs.<resourceName>.path`| The path to the input resource's directory. |
24
+
|`resources.outputs.<resourceName>.path`| The path to the output resource's directory. |
25
+
|`results.<resultName>.path`| The path to the file where the `Task` writes its results data. |
26
+
|`workspaces.<workspaceName>.path`| The path to the mounted `Workspace`. |
27
+
|`workspaces.<workspaceName>.claim`| The name of the `PersistentVolumeClaim` specified as a volume source for the `Workspace`. Empty string for other volume types. |
28
+
|`workspaces.<workspaceName>.volume`| The name of the volume populating the `Workspace`. |
29
+
|`credentials.path`| The path to the credentials written by the `creds-init` init container. |
31
30
32
-
### PipelineResource Variables
31
+
### `PipelineResource` variables available in a `Task`
33
32
34
-
Each PipelineResource exposes its own set of variables. Below the variables are grouped by
35
-
PipelineResource type. These are available in `Tasks`.
33
+
Each supported type of `PipelineResource` specified within a `Task` exposes a unique set
34
+
of variables. This section lists the variables exposed by each type. You can access a
35
+
variable via `resources.inputs.<resourceName>.<variableName>` or
0 commit comments