Skip to content

Overview

Pipeline Libraries are the foundation of the Jenkins Templating Engine to allow Pipeline Templates to be shared across teams.

Libraries provide steps that can be invoked from templates.

Library Repository Scaffold

Check out this starter repository to help you get off on the right foot.

Loading Libraries

The libraries{} block within the Pipeline Configuration defines which libraries will be loaded for a particular Pipeline Run.

Learn More

Topic Description
Library Structure Learn how files are organized within a library.
Library Steps Learn how to add steps to a library.
Library Resources Learn how to use static assets from within Library Steps
Library Classes Learn how to define classes within a library.
Parameterizing Libraries Learn how to make libraries configurable from the Pipeline Configuration
Library Configuration File Learn how to validate library parameters using the library configuration file
Library Sources Learn how to make a library discoverable for loading.
Lifecycle Hooks Learn how to register steps for implicit invocation.
Multi-Method Library Steps Learn how to define multiple methods per step.
Step Aliasing Learn how to invoke the same step by multiple names.
Back to top