Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to view pipeline run logs when jx-dash is not available #3617

Open
vpvmohan opened this issue Jun 20, 2022 · 0 comments
Open

How to view pipeline run logs when jx-dash is not available #3617

vpvmohan opened this issue Jun 20, 2022 · 0 comments

Comments

@vpvmohan
Copy link

This is a Feature Request
Should add documentation on how to view pipeline logs from cluster directly.

What would you like to be added
The place where we are providing details on viewing pipe logs using jx dash

Why is this needed
This will help JenkinsX user when they face an issue like jx dash ui unable to retrieve log file from S3 bucket, or when jx dash ui is not available due to infra issue or also when jx dash got stuck while loading logs

Comments
Something like below will be more helpful ...

  1. The pipelines are run on pods, so you can ultimately get the logs from there. To see the pipelineruns sorted by time, use this command
    jx ns jx
    kubectl get pipelineruns --sort-by=.metadata.creationTimestamp
  2. When you find the pipelinerun you want to investigate, run
    kubectl describe pipelinerun
  3. There should be a "message" field describing any errors, which you can get using a command like this
    kubectl describe pipelinerun | grep -i message
  4. Also, you can find the pod the pipelinerun used and read logs directly from there
    kubectl describe pipelinerun | grep -i 'pod name'
    Should output the name of the pod, then do
    kubectl logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant