First my understanding of folder-level shared libraries: It's a groovy script I can place anywhere in the repository where I want it to use (i.e. where my Jenkinsfile will be).
If this is wrong please let me know.
My question:
How can I include this library. For global libraries I can use @Library($libraryName)
to import libraries I registered with a name as global library. But for folder-level libraries there is no name specified. How do I import them? Do I really have to specify the git repo like demonstrated in this answer?
@Library
or the other supporting APIs (likelibrary
step). Maybe you are looking for theload
step to use scripts in the same repository? It depends on what you are trying to accomplish. – Inscription