Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DevMadhup authored Jul 26, 2024
1 parent 5ca0589 commit ae41a39
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,19 @@

#
## How to create and use shared library in Jenkins.
-

### How to create Shared library
- Login to your Jenkins dashboard. <a href="">Jenkins Installation</a>
- Go to **Manage Jenkins** --> **System** and search for **Global Trusted Pipeline Libraries**.

**Name:** Shared <br>
**Default version:** \<branch name><br>
**Project repository:** https://github.com/DevMadhup/Jenkins_SharedLib.git <br>
****

#
### How to use it in Jenkins pipeline
- Go to your declarative pipeline
- Add **@Library('Shared') _** at the very first line of your jenkins pipeline.

**Note:** @Library() _ is the syntax to use shared library.

0 comments on commit ae41a39

Please sign in to comment.