Skip to content

Commit

Permalink
docs: optimize examples for propagating results
Browse files Browse the repository at this point in the history
The previous example did not actually output results,
leading to the misconception that it was not effective.
  • Loading branch information
l-qing committed Jan 23, 2024
1 parent 52a8e1f commit a3fd918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
11 changes: 4 additions & 7 deletions docs/pipelineruns.md
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,8 @@ spec:
image: busybox
command: ["/bin/sh", "-c"]
args:
- echo
# - $(params.uid)
- $(tasks.add-uid.results.uid)
- echo $(tasks.add-uid.results.uid)
# - echo $(params.uid)
```

On executing the `PipelineRun`, the `Results` will be interpolated during resolution.
Expand All @@ -809,8 +808,7 @@ spec:
taskSpec:
steps:
args:
echo
1001
echo 1001
command:
- /bin/sh
- -c
Expand All @@ -831,8 +829,7 @@ status:
taskSpec:
steps:
args:
echo
1001
echo 1001
command:
/bin/sh
-c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ spec:
image: busybox
command: ["/bin/sh", "-c"]
args:
- echo
- $(tasks.add-uid.results.uid)
- echo $(tasks.add-uid.results.uid)

0 comments on commit a3fd918

Please sign in to comment.