GithubHelp home page GithubHelp logo

Comments (9)

piyush-garg avatar piyush-garg commented on May 30, 2024 1

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.

piyush-garg avatar piyush-garg commented on May 30, 2024

/assign

from cli.

piyush-garg avatar piyush-garg commented on May 30, 2024

@siamaksade

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.

siamaksade avatar siamaksade commented on May 30, 2024

from cli.

siamaksade avatar siamaksade commented on May 30, 2024

@piyush-garg

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.

piyush-garg avatar piyush-garg commented on May 30, 2024

@siamaksade Will take a look once more over this.

from cli.

piyush-garg avatar piyush-garg commented on May 30, 2024

@siamaksade It will be a great help if you can provide the complete kubectl describe pipelinerun petclinic-deploy-pipeline-run-mmvst output

from cli.

piyush-garg avatar piyush-garg commented on May 30, 2024

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.

siamaksade avatar siamaksade commented on May 30, 2024

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.