Comments (9)
Looks like we have to print the message from the condition of the specific task which failed, not from the pipeline run condition.
from cli.
/assign
from cli.
If you see, the reason is getting printed on the status column in a bracket like
STARTED DURATION STATUS
41 seconds ago 0 seconds Failed(PipelineInvalidGraph)
Do you mean printing the message in case of failure?
from cli.
from cli.
The error message still is not descriptive. tkn describe
just says the task has failed:
$ tkn pr describe petclinic-deploy-pipeline-run-mmvst
Name: petclinic-deploy-pipeline-run-mmvst
Message
TaskRun petclinic-deploy-pipeline-run-mmvst-build-dp2fj has failed
While kubectl describe
prints out the reason too:
$kubectl describe pipelinerun petclinic-deploy-pipeline-run-mmvst
...
Status:
Task Runs:
Petclinic - Deploy - Pipeline - Run - Mmvst - Build - Dp 2 Fj:
Pipeline Task Name: build
Status:
Conditions:
Last Transition Time: 2019-08-09T12:40:25Z
Message: Missing or invalid Task pipelines-demo/s2i-java-8: pods "petclinic-deploy-pipeline-run-mmvst-build-dp2fj-pod-c12670" is forbidden: unable to validate against any security context constraint: [spec.containers[3].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[5].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]
Reason: CouldntGetTask
from cli.
@siamaksade Will take a look once more over this.
from cli.
@siamaksade It will be a great help if you can provide the complete kubectl describe pipelinerun petclinic-deploy-pipeline-run-mmvst
output
from cli.
Hi, I tried to reproduce this, was not able to do, it is perfectly showing the message for me.
Let me know if you are able to create the scenario again.
from cli.
@piyush-garg use this gist to reproduce it:
https://gist.github.com/siamaksade/9275d11a8f8b156c00c77c4a59cc6663
kubectl create -f all.yaml
kubectl create -f pr.yaml
And then compare the output the following commands:
tkn pr describe [pr-name]
kubectl describe pipelinerun [pr-name]
from cli.
Related Issues (20)
- Migrate off `pipelineResources` for cli HOT 2
- Support for `minimal` to-be-removed `EmbeddedStatus` HOT 6
- tkn taskrun list is throwing error regarding cluster scope permissions
- Do not mark tkn bundle as experimental HOT 5
- Listing Pipelines breaks when using both `--all-namespaces` and `--output yaml` HOT 1
- tkn returning error and exit code 1 deleting pipelineruns when argument --keep is equal to existing pipelineruns HOT 1
- Task and Pipeline Run - Ability to set name from CLI HOT 4
- task&pipeline sign&verify shouldn't need kube config HOT 3
- TestEventListenerE2E depends upon a bug HOT 2
- tkn pr export is not exporting properly HOT 1
- Add support for annotating image manifest for OCI bundles HOT 4
- `tkn tr delete --keep <n>` does not work when pipelineruns are present HOT 3
- issue with keep and keep-since in taskrun and in pipelinerun HOT 2
- Support Tekton cli installation on Windows using winget HOT 4
- `tkn p start <pipeline-name> --showlog` shows logs of only one taskrun HOT 10
- tkn pr logs has problems if resolver was involved in the pipelinerun HOT 2
- Failed PipelineRuns should show info about their TaskRuns when describing them `tkn pr describe` HOT 5
- tkn cli fails to produce logs for older versions of the operator HOT 11
- typo in CLI v0.31.0 release notes HOT 2
- tkn p start --timeout command is failing to start the pipeline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.