cli icon indicating copy to clipboard operation
cli copied to clipboard

Pass result of a Pipeline/Task execution via exit code

Open keskad opened this issue 2 years ago • 3 comments

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?

keskad avatar Aug 03 '22 15:08 keskad

/kind feature /cc @chmouel

vdemeester avatar Aug 18 '22 10:08 vdemeester

@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.

pradeepitm12 avatar Sep 27 '22 12:09 pradeepitm12

@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/

chmouel avatar Sep 27 '22 13:09 chmouel

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.

tekton-robot avatar Jun 26 '23 12:06 tekton-robot

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.

tekton-robot avatar Jul 26 '23 13:07 tekton-robot

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 avatar Aug 25 '23 13:08 tekton-robot

@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.

tekton-robot avatar Aug 25 '23 13:08 tekton-robot