cli
cli copied to clipboard
Pass result of a Pipeline/Task execution via exit code
Hi, is it intentional that the started and observed (using --showlog
) Task/Pipeline does not have passed a result as an exit code to the shell?
Example:
tkn pipeline run ...
-> Pipeline fails -> exit 1
tkn pipeline run ...
-> Pipeline succeds -> exit 0
What about implementing a commandline switch e.g. --pass-result-as-exitcode
to not introduce a BC but allow to return the exit code when using --showlog
?
/kind feature /cc @chmouel
@tektoncd/cli-maintainers IMHO, if we are passing a specific flag to get the exit code that should be fine. Please feel free to comment suggest on this.
@keskad I gave up debating which flags or commands to implement and wrote an extension addressing exactly this :-D
https://github.com/chmouel/tkn-watch/
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen
with a justification.
/lifecycle stale
Send feedback to tektoncd/plumbing.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
with a justification.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen
with a justification.
/lifecycle rotten
Send feedback to tektoncd/plumbing.
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
with a justification.
Mark the issue as fresh with /remove-lifecycle rotten
with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen
with a justification.
/close
Send feedback to tektoncd/plumbing.
@tekton-robot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity. Reopen the issue with
/reopen
with a justification. Mark the issue as fresh with/remove-lifecycle rotten
with a justification. If this issue should be exempted, mark the issue as frozen with/lifecycle frozen
with a justification./close
Send feedback to tektoncd/plumbing.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.