Skip to content

Commit

Permalink
docs: fixing wrong matrix syntax in some places
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Dec 22, 2022
1 parent 17c604e commit 45e6ed6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/matrix.md
Expand Up @@ -175,11 +175,12 @@ tasks:
taskRef:
name: task-4
matrix:
- name: values
value:
- (tasks.task-1.results.foo) # string
- (tasks.task-2.results.bar) # string
- (tasks.task-3.results.rad) # string
params:
- name: values
value:
- (tasks.task-1.results.foo) # string
- (tasks.task-2.results.bar) # string
- (tasks.task-3.results.rad) # string
```

For further information, see the example in [`PipelineRun` with `Matrix` and `Results`][pr-with-matrix-and-results].
Expand All @@ -194,8 +195,9 @@ tasks:
taskRef:
name: task-5
matrix:
- name: values
value: (tasks.task-4.results.foo) # array
params:
- name: values
value: (tasks.task-4.results.foo) # array
```

#### Results from fanned out PipelineTasks
Expand Down Expand Up @@ -574,4 +576,4 @@ spec:
[cel]: https://github.com/tektoncd/experimental/tree/1609827ea81d05c8d00f8933c5c9d6150cd36989/cel
[pr-with-matrix]: ../examples/v1beta1/pipelineruns/alpha/pipelinerun-with-matrix.yaml
[pr-with-matrix-and-results]: ../examples/v1beta1/pipelineruns/alpha/pipelinerun-with-matrix-and-results.yaml
[retries]: pipelines.md#using-the-retries-field
[retries]: pipelines.md#using-the-retries-field
3 changes: 3 additions & 0 deletions docs/pipelines.md
Expand Up @@ -375,6 +375,7 @@ spec:
taskRef:
name: browser-test
matrix:
params:
- name: browser
value:
- chrome
Expand Down Expand Up @@ -1238,6 +1239,7 @@ spec:
- name: url
value: "someURL"
matrix:
params:
- name: slack-channel
value:
- "foo"
Expand Down Expand Up @@ -1696,6 +1698,7 @@ spec:
- name: foo
value: bah
matrix:
params:
- name: bar
value:
- qux
Expand Down

0 comments on commit 45e6ed6

Please sign in to comment.