I have a global library configured in Jenkins. It works. But when my Pipeline is stored in SCM, it tells me that it cannot find it when I tried to load it. A workaround is to load it implicitly.
But how can I access the classes in the library then? I can not do
@Library("mylib") import ...
Because that triggers the error.