How jenkinsci/pipeline-examples works
Project type and purpose
• This is an open-source snippet repository for the Jenkins Pipeline plugin.
• It provides categorized examples of Pipeline scripts, Jenkinsfiles and global library code to help Jenkins users understand and implement CI/CD pipelines.
File structure
• Top-level directories:
• docs – markdown guides and best practices
• pipeline-examples – self-contained Groovy pipeline scripts organized by feature
• jenkinsfile-examples – sample Jenkinsfiles you’d commit to a Git repo
• global-library-examples – shared library code and usage examples
• No build scripts or deploy pipelines here – it’s purely example content.
README for additional insights
• The README makes clear that the repo is a “home for snippets, tips and tricks” around the Workflow/Pipeline plugin.
• It describes how to add new examples and the MIT license.
Detail is key
• Call out the shared library loading process separately from Jenkinsfile checkout
• That documentation (docs module) is shown as a deliverable consumed by developers