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
Remove not supported results and params variables doc
This commit updates the results and params related variables doc. In the
doc for results, the square bracket reference is not currently supported
for all types of results, these should be removed to avoid user
confusion before issue tektoncd#4910 is done. Meanwhile we add star notation for
param reference as a whole.
Copy file name to clipboardExpand all lines: docs/variables.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,21 +19,16 @@ For instructions on using variable substitutions see the relevant section of [th
19
19
|`params.<param name>`| The value of the parameter at runtime. |
20
20
|`params['<param name>']`| (see above) |
21
21
|`params["<param name>"]`| (see above) |
22
+
|`params.<param name>[*]`| Get the whole param array or object.|
23
+
|`params['<param name>'][*]`| (see above) |
24
+
|`params["<param name>"][*]`| (see above) |
22
25
|`params.<param name>[i]`| Get the i-th element of param array. This is alpha feature, set `enable-api-fields` to `alpha` to use it.|
23
26
|`params['<param name>'][i]`| (see above) |
24
27
|`params["<param name>"][i]`| (see above) |
25
28
|`tasks.<taskName>.results.<resultName>`| The value of the `Task's` result. Can alter `Task` execution order within a `Pipeline`.) |
26
-
|`tasks.<taskName>.results['<resultName>']`| (see above)) |
27
-
|`tasks.<taskName>.results["<resultName>"]`| (see above)) |
28
29
|`tasks.<taskName>.results.<resultName>[i]`| The ith value of the `Task's` array result. Can alter `Task` execution order within a `Pipeline`.) |
29
-
|`tasks.<taskName>.results['<resultName>'][i]`| (see above)) |
30
-
|`tasks.<taskName>.results["<resultName>"][i]`| (see above)) |
31
30
|`tasks.<taskName>.results.<resultName>[*]`| The array value of the `Task's` result. Can alter `Task` execution order within a `Pipeline`. Cannot be used in `script`.) |
32
-
|`tasks.<taskName>.results['<resultName>'][*]`| (see above)) |
33
-
|`tasks.<taskName>.results["<resultName>"][*]`| (see above)) |
34
31
|`tasks.<taskName>.results.<resultName>.key`| The `key` value of the `Task's` object result. Can alter `Task` execution order within a `Pipeline`.) |
35
-
|`tasks.<taskName>.results['<resultName>'][key]`| (see above)) |
36
-
|`tasks.<taskName>.results["<resultName>"][key]`| (see above)) |
37
32
|`workspaces.<workspaceName>.bound`| Whether a `Workspace` has been bound or not. "false" if the `Workspace` declaration has `optional: true` and the Workspace binding was omitted by the PipelineRun. |
38
33
|`context.pipelineRun.name`| The name of the `PipelineRun` that this `Pipeline` is running in. |
39
34
|`context.pipelineRun.namespace`| The namespace of the `PipelineRun` that this `Pipeline` is running in. |
@@ -50,6 +45,9 @@ For instructions on using variable substitutions see the relevant section of [th
50
45
|`params.<param name>`| The value of the parameter at runtime. |
51
46
|`params['<param name>']`| (see above) |
52
47
|`params["<param name>"]`| (see above) |
48
+
|`params.<param name>[*]`| Get the whole param array or object.|
49
+
|`params['<param name>'][*]`| (see above) |
50
+
|`params["<param name>"][*]`| (see above) |
53
51
|`params.<param name>[i]`| Get the i-th element of param array. This is alpha feature, set `enable-api-fields` to `alpha` to use it.|
0 commit comments