# jenkinsci/pipeline-examples

A collection of examples, tips and tricks and snippets of scripting for the Jenkins Pipeline plugin

Repository: https://github.com/jenkinsci/pipeline-examples
Canonical: https://ross.abutalabs.com/products/pipeline-examples
Homepage: https://jenkins.io/doc/pipeline/examples/
Language: Groovy
License: MIT
License Family: permissive
Last push: 2023-08-31T09:25:29+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3935, "days_push": 1098, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4291, forks 3566 (observed 2026-08-28T04:08:41.434983+00:00)

## What it is
A curated collection of snippets, tips, and example scripts for the Jenkins Pipeline plugin, written mostly in Groovy. It includes general pipeline examples, Jenkinsfile samples, and global shared library usage patterns.

## Use cases
- learn how to write Jenkins Pipeline scripts
- find Jenkinsfile examples for CI/CD
- see how to archive build artifacts in Jenkins
- run parallel jobs in a Jenkins pipeline
- write a Jenkins shared library
- copy pipeline snippets for triggering jobs and notifications

## When to choose
- you are writing or debugging Jenkins Pipeline (Groovy) scripts and want working examples
- you need reference snippets for Jenkinsfiles or global shared libraries
- you are learning Jenkins CI/CD automation

## When to avoid
- you use a CI system other than Jenkins
- you need a maintained pipeline library rather than example snippets
- you want declarative-only modern pipeline guidance, as many examples are older scripted-pipeline style

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, ci-cd, documentation
- domain: developer-tools, tutorials
- platform: jvm, cli, self-hosted
- tags: jenkins, jenkins-pipeline, groovy, jenkinsfile, code-snippets, examples, devops, automation

## Member repositories
- jenkinsci/pipeline-examples (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.434983+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:53.813007+00:00, confidence not recorded.
  - readme: https://github.com/jenkinsci/pipeline-examples (fetched 2026-08-28T04:08:41.434983+00:00, sha 293bba0b03ba)
  - homepage: https://jenkins.io/doc/pipeline/examples/ (fetched 2026-08-29T09:11:09.233249+00:00, sha 073fa73ea595)
- Data as of 2026-08-30T08:39:29.467469+00:00.
