InterviewSolution
| 1. |
What is a Jenkins Shared Library and how it is useful? |
|
Answer» 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. |
|