Skip to content

bongodev/jenkins-shared-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Jenkins Shared Library

  • Shared libraries in Jenkins Pipelines are reusable pieces of code that can be organized into functions and classes.
  • These libraries allow you to encapsulate common logic, making it easier to maintain and share across multiple pipelines and projects.
  • Shared library must be inside the vars directory in your github repository
  • Shared library uses groovy syntax and file name ends with .groovy extension.

How to create and use shared library in Jenkins.

How to create Shared library


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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages