TL;DR Is there a way to import code into the Jenkinsfile
from the local repository (other than the load
step)?
I\'ve ex
You may take a look at plugin I wrote, that enables using subdirectories of repo where your pipeline is as shared libraries: https://github.com/karolgil/SharedLibrary
After building and installing it, you can simply put following in your pipeline:
@SharedLibrary('dir/in/repo') _
To start using dir/in/repo
as shared library for your pipelines.