For the sake of simplifying the reproduction steps, the simple Pipeline is used.
- Create an empty git repo
- Configure it as a implicitly loaded global shared library
- Create a Pipeline:
echo 'Hello World'
- Run the Pipeline and see it fail due to
ERROR: Library library expected to contain at least one of src or vars directories
- Add a sayHello step to the shared library https://jenkins.io/doc/book/pipeline/shared-libraries/#defining-custom-steps
- Run the Pipeline again
Actual: Build fails with:
java.io.IOException: hello-world #1 did not yet start
Full stack trace is attached.
Expected: Either success or a more readable error.