diff --git a/docs/variables.md b/docs/variables.md index f4967dde0b1..8822015fd4d 100644 --- a/docs/variables.md +++ b/docs/variables.md @@ -19,21 +19,16 @@ For instructions on using variable substitutions see the relevant section of [th | `params.` | The value of the parameter at runtime. | | `params['']` | (see above) | | `params[""]` | (see above) | +| `params.[*]` | Get the whole param array or object.| +| `params[''][*]` | (see above) | +| `params[""][*]` | (see above) | | `params.[i]` | Get the i-th element of param array. This is alpha feature, set `enable-api-fields` to `alpha` to use it.| | `params[''][i]` | (see above) | | `params[""][i]` | (see above) | | `tasks..results.` | The value of the `Task's` result. Can alter `Task` execution order within a `Pipeline`.) | -| `tasks..results['']` | (see above)) | -| `tasks..results[""]` | (see above)) | | `tasks..results.[i]` | The ith value of the `Task's` array result. Can alter `Task` execution order within a `Pipeline`.) | -| `tasks..results[''][i]` | (see above)) | -| `tasks..results[""][i]` | (see above)) | | `tasks..results.[*]` | The array value of the `Task's` result. Can alter `Task` execution order within a `Pipeline`. Cannot be used in `script`.) | -| `tasks..results[''][*]` | (see above)) | -| `tasks..results[""][*]` | (see above)) | | `tasks..results..key` | The `key` value of the `Task's` object result. Can alter `Task` execution order within a `Pipeline`.) | -| `tasks..results[''][key]` | (see above)) | -| `tasks..results[""][key]` | (see above)) | | `workspaces..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. | | `context.pipelineRun.name` | The name of the `PipelineRun` that this `Pipeline` is running in. | | `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 | `params.` | The value of the parameter at runtime. | | `params['']` | (see above) | | `params[""]` | (see above) | +| `params.[*]` | Get the whole param array or object.| +| `params[''][*]` | (see above) | +| `params[""][*]` | (see above) | | `params.[i]` | Get the i-th element of param array. This is alpha feature, set `enable-api-fields` to `alpha` to use it.| | `params[''][i]` | (see above) | | `params[""][i]` | (see above) |