# jenkinsci/JenkinsPipelineUnit

Framework for unit testing Jenkins pipelines

Repository: https://github.com/jenkinsci/JenkinsPipelineUnit
Canonical: https://ross.abutalabs.com/products/jenkinspipelineunit
Language: Groovy
License: MIT
License Family: permissive
Topics: jenkins, pipelines-as-code, test, hactoberfest
Last push: 2026-08-24T07:35:12+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 67, longevity 100
- inputs: {"age_days": 3507, "days_push": 9, "days_rel": 63, "gap_med": 97.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1585, forks 394 (observed 2026-08-28T04:05:07.591683+00:00)

## What it is
JenkinsPipelineUnit is a Groovy testing framework for unit testing Jenkins pipelines written in the Pipeline DSL. It provides a mock execution environment for pipelines, allowing developers to mock built-in Jenkins commands, test pipeline logic and configuration, and track regressions.

## Use cases
- unit test jenkins pipeline logic
- mock jenkins pipeline steps in tests
- test jenkins shared libraries
- write tests for declarative jenkins pipelines
- catch regressions in jenkinsfile changes
- test conditional logic in ci pipeline code

## When to choose
- you write complex Jenkins pipelines or shared libraries and want automated tests
- you want to mock Jenkins built-in steps without a live Jenkins server
- you need to verify pipeline behavior in CI before merging changes

## When to avoid
- you need integration or end-to-end testing against a real Jenkins instance
- your project uses Groovy 4, which is not yet supported
- you don't use Jenkins for CI/CD

## Facets
- artifact type: framework
- maturity: active
- function: testing, mocking, ci-cd
- domain: testing, developer-tools
- platform: jvm, cli
- tags: jenkins, groovy, pipeline-as-code, unit-testing, shared-libraries, devops, automation

## Member repositories
- jenkinsci/JenkinsPipelineUnit (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:07.591683+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-30T03:55:33.765624+00:00, confidence not recorded.
  - readme: https://github.com/jenkinsci/JenkinsPipelineUnit (fetched 2026-08-28T04:05:07.591683+00:00, sha 1d5dd4c83f68)
- Data as of 2026-08-30T08:39:29.467469+00:00.
