Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 676 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 676 Bytes

how to create a basic shared library and integrate it with Jenkins and a sample pipeline.

  1. Create a Shared Library Structure
  2. Create Custom Shared Library Code
  3. Configure Shared Library In Jenkins Configuration
  4. 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