0 votes
in Jenkins by
What is a Jenkins Shared Library and how it is useful?

1 Answer

0 votes
by

As an organization starts using more and more pipeline jobs, there is a chance for more and more code being duplicated in every pipeline job, since a part of the build/automation processes will be the same for most of the jobs. In such a situation, every other new upcoming job should also duplicate the same piece of code. To avoid duplications, the Jenkins project brought in the concept of Shared Libraries, to code – DRY – Don’t Repeat Yourself.

Shared libraries are a set of code that can be common for more than one pipeline job and can be maintained separately. Such libraries improve the maintenance, modularity & readability of the pipeline code. And it also speeds up the automation for new jobs.

Related questions

0 votes
asked Nov 16, 2022 in Jenkins by Robin
0 votes
asked Apr 28, 2021 in Jenkins by Robindeniel
...