Pipeline: Shared Groovy Libraries

ID: workflow-cps-global-lib

When you have multiple Pipeline jobs, you often want to share some parts of the Pipeline scripts between them to keep Pipeline scripts DRY. A very common use case is that you have many projects that are built in the similar way.

This plugin adds that functionality by allowing you to create “shared library script” SCM repositories. It can be used in two modes:

  • A legacy mode in which there is a single Git repository hosted by Jenkins itself, to which you may push changes
  • A more general mode in which you may define libraries hosted by any SCM in a location of your choice.

Comprehensive user documentation can be found in the Pipeline chapter of the User Handbook.

ArchivesGet past versions
Version: 2.18
Requires Jenkins 2.222.4
Installs: 267,193
Jesse Glick
Kohsuke Kawaguchi
Andrew Bayer
Sam Van Oort
Devin Nusbaum
Carroll Chiou
Liam Newman
Karl Shultz
Jose Blas Camacho Taboada
Help us improve this page!
To propose a change submit a pull request to the plugin page on GitHub.
Previous Security Warnings