Unable to follow Jenkins pipeline build logs
Issue
It is not possible to start a Jenkins build and follow the build logs. When running the following command an error is shown but the build is started:
$ oc start-build --follow my-pipeline
build "my-pipeline-1" started
error getting logs (pod "my-pipeline-1-build" not found), waiting for build to complete
Environment
OpenShift Container Platform 3.4 and later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
