Skip to content
A collection of examples, tips and tricks and snippets of scripting for the Jenkins Pipeline plugin
Branch: master
Clone or download
svanoort Merge pull request #79 from carlosrodlop/bestPractice
BEST_PRACTICES: Adding new points for general advices and extending some of existing ones
Latest commit 0b834c0 Jan 22, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Merge pull request #79 from carlosrodlop/bestPractice Jan 22, 2018
global-library-examples Fix broken link Sep 7, 2016
jenkinsfile-examples stages now use block arguments as per new requirements. Apr 10, 2017
pipeline-examples Rename example code snippet extension to lowercase to fix rendering o… Nov 13, 2017


This repository is a home for snippets, tips and tricks and examples of scripting for the Jenkins Pipeline plugin.


The repository is broken up into four directories currently:

  • pipeline-examples - for general Pipeline examples.
  • global-library-examples - for examples of how to write and use the global library on a Jenkins master.
  • jenkinsfile-examples - for examples of using Jenkinsfiles checked into repositories.
  • docs - for documentation, guides and other non-code content.

Please put your script into its own directory under the appropriate directory above, with a file included explaining what your script does or shows. Make sure your script is commented so that others can understand how it works, why it works, etc.


All contributions are under the MIT license, like Jenkins itself.

Pull requests

We want them!

External resources

You can’t perform that action at this time.