jenkinsjenkins-pipelineshared-librariesjenkins-groovyjenkins-shared-libraries

How to implement shared library in jenkins, without configuring "Global Pipeline Libraries" in "Manage Jenkins"?


Since I don't have access to "Manage Jenkins" menu in my organization, I'm unable to configure my shared library in "Global Pipeline Libraries" in "Manage Jenkins".

Is there any other way to implement this, without configuring in Manage Jenkins?

(or)

Is it possible to configure "Global Pipeline Libraries" part through pipeline script, irrespective of access privileges?

If possible, requesting you to share some code snippets in the answer.


Solution

  • Without configuring in "Manage Jenkins". We can use "LibraryIdentifier" in Pipeline script to load the libraries in the jenkins build.