how to create a basic shared library and integrate it with Jenkins and a sample pipeline.
- Create a Shared Library Structure
- Create Custom Shared Library Code
- Configure Shared Library In Jenkins Configuration
- Create Declarative Pipeline as Code With Shared Library.
Add Github Shared Library Repo to Jenkins
Now that we have a basic git checkout library ready lets add it to Jenkins configurations. Step 1: Go to Manage Jenkins –> Configure System Step 2: Find the Global Pipeline Libraries section and add your repo details and configurations as shown below.
https://devopscube.com/wp-content/uploads/2019/07/configure-jenkins-shared-library-1024x588.png