Skip to content

Commit

Permalink
docs: Fix exit code example and docs (argoproj#2853)
Browse files Browse the repository at this point in the history
  • Loading branch information
simster7 committed Apr 27, 2020
1 parent 9074335 commit d9c5407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ The following variables are made available to reference various metadata of a wo
|----------|------------|
| `steps.<STEPNAME>.ip` | IP address of a previous daemon container step |
| `steps.<STEPNAME>.status` | Phase status of any previous step |
| `steps.<STEPNAME>.exitCode` | Exit code of any previous script or container step |
| `steps.<STEPNAME>.outputs.result` | Output result of any previous container or script step |
| `steps.<STEPNAME>.outputs.exitCode` | Exit code of any previous script step |
| `steps.<STEPNAME>.outputs.parameters.<NAME>` | Output parameter of any previous step |
| `steps.<STEPNAME>.outputs.artifacts.<NAME>` | Output artifact of any previous step |

Expand All @@ -24,8 +24,8 @@ The following variables are made available to reference various metadata of a wo
|----------|------------|
| `tasks.<TASKNAME>.ip` | IP address of a previous daemon container task |
| `tasks.<TASKNAME>.status` | Phase status of any previous task |
| `tasks.<TASKNAME>.exitCode` | Exit code of any previous script or container task |
| `tasks.<TASKNAME>.outputs.result` | Output result of any previous container or script task |
| `tasks.<TASKNAME>.outputs.exitCode` | Exit code of any previous script task |
| `tasks.<TASKNAME>.outputs.parameters.<NAME>` | Output parameter of any previous task |
| `tasks.<TASKNAME>.outputs.artifacts.<NAME>` | Output artifact of any previous task |

Expand Down
3 changes: 2 additions & 1 deletion examples/exit-code-output-variable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ spec:
arguments:
parameters:
- name: exitCode
value: "{{steps.failing-container.outputs.exitCode}}"
value: "{{steps.failing-container.exitCode}}"

- name: failing-container
script:
image: alpine:3.6
Expand Down

0 comments on commit d9c5407

Please sign in to comment.