Jenkins - load global pipeline library from filesystem instead of SCM?

Viewed 6232

I can't find anything in the docs on how to do this - anybody have any ideas?

2 Answers

You can use File System SCM plugin to load your library from file system. Once you have installed this plugin, use "Legacy SCM" in your library configuration to set a path and choose "master" as default version. Can not use Load implicitly, so explicit configuration should be done in the pipeline.

As a reference, I read this approach in this slides https://www.slideshare.net/roidelapluie/jenkins-shared-libraries-workshop.

Related