cli
cli copied to clipboard
Return value of tkn pipeline start with --showlog does not depend on state of started pipeline
Versions and Operating System
- Kubernetes version:
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.6+5157800", GitCommit:"eddac29feb4bb46b99fb570999324e582d761a66", GitTreeState:"clean", BuildDate:"2022-10-11T13:02:03Z", GoVersion:"go1.18.7", Compiler:"gc", Platform:"linux/amd64"}
-
Tekton Pipeline version:
Output of
tkn versionorkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
Client version: 0.24.1
Pipeline version: v0.37.5
Triggers version: v0.20.2
Operator version: v0.60.1
- Operating System:
Linux
Expected Behavior
When I run a pipeline with tkn pipeline start <pipeline-name> --showlog and the pipeline fails, I expect the return value of the tkn command is also non 0. In this way it is possible to start a pipeline from another pipeline and fail the first one, if the second one has failed.
Actual Behavior
The return value of tkn pipeline start <pipeline-name> --showlog is 0, if the started pipeline fails.
Steps to Reproduce the Problem
tkn pipeline start <pipeline-name> --showlog || echo "run failed"
The "run failed" string is never shown, even if the started pipeline failed.
Additional Info
...