Logs

Logs for PipelineRuns and TaskRuns areassociated with the underlying pod.

To access these logs currently you have a few options:

  1. # Get the name of the pod from the instance of the TaskRun
  2. kubectl get taskruns -o yaml | grep podName
  3. # Or get the pod name from the PipelineRun
  4. kubectl get pipelineruns -o yaml | grep podName
  5. # Use kubectl to access the logs for all containers in the pod
  6. kubectl logs $POD_NAME --all-containers
  7. # Or get the logs from a specific container in the pod
  8. kubectl logs $POD_NAME -c $CONTAINER_NAME
  9. kubectl logs $POD_NAME -c step-run-kubectl