Skip to main content

jenkinsfilelint-engine

Check a Jenkinsfile without a Jenkins controller: no server, no Docker, no JVM. One ~500 KB binary that checks Groovy syntax and Declarative Pipeline structure, and reports errors with the same wording as Jenkins's own validator.

This is the offline engine of jenkinsfilelint: it runs for --offline, the jenkinsfilelint-offline pre-commit hook, and whenever no Jenkins server is configured. Most people want jenkinsfilelint itself, which installs this package. The remote and Docker modes of jenkinsfilelint stay the exact check; this one is the fast one. See DESIGN.md.

$ jenkinsfilelint-engine Jenkinsfile
Jenkinsfile:2:5: error: Not a valid section definition: "agent". Some extra configuration is required.
Jenkinsfile:9:9: error: Expected one of "steps", "stages", or "parallel" for stage "Test"
Jenkinsfile:10:13: error: Unknown stage section "step". Starting with version 0.5, steps in a stage must be in a ‘steps’ block.

Install

pip install jenkinsfilelint-engine

PyPI has prebuilt wheels for Linux (x86_64, aarch64, i686, armv7; glibc and musl), macOS (x86_64, arm64) and Windows (x86_64, x86), for any Python 3.10+. The wheel puts the jenkinsfilelint-engine binary in the environment's scripts directory; python -m jenkinsfilelint_engine runs it too, and jenkinsfilelint_engine.find_bin() returns its path. On other platforms pip builds it from the sdist, which needs a Rust toolchain.

Build and run

cd crates/jenkinsfilelint
cargo build --release
./target/release/jenkinsfilelint-engine path/to/Jenkinsfile [more files...]
./target/release/jenkinsfilelint-engine --format json Jenkinsfile

Exit code is 0 when no file has an error, 1 when any does, and 2 for usage errors. Warnings do not fail the run.

--format json prints one object per file:

[{"file": "Jenkinsfile", "declarative": true, "diagnostics": [
  {"line": 2, "column": 5, "severity": "error", "message": "Not a valid section definition: ..."}]},
 {"file": "vars/notify.groovy", "declarative": false, "diagnostics": []},
 {"file": "missing", "error": "No such file or directory (os error 2)"}]

declarative is false when the file has no pipeline block (a Scripted Pipeline, a shared-library step, plain Groovy): its Groovy syntax was checked, but there was no Declarative structure to check.

What it checks

  • Groovy syntax, including every string form ('...', "${...}", triple-quoted, slashy, dollar-slashy), command calls with named arguments (sh script: 'ls', returnStdout: true), trailing closures, @Library(...) _, method and class definitions.
  • Declarative structure: required agent and stages; allowed and duplicate sections; each stage has exactly one of steps, stages, parallel or matrix; no nested parallel/matrix; agent forms and built-in agent parameters; environment keys and values; options, triggers, parameters, tools, libraries, input; when conditions and their nesting; post conditions; matrix axes and excludes; steps that are blocked in Declarative (stage, properties, mixed parallel); pipeline {} inside the block of another step (node { pipeline { } }).

What it cannot check

Anything that depends on the plugins installed on a controller:

  • whether a step exists and takes the given parameters,
  • agent types added by plugins (reported as a warning, not an error),
  • tool installations configured on the controller,
  • script-security sandbox rules.

Use the remote or --local Docker mode of jenkinsfilelint for those.

How close is it to the official validator?

The pipeline-model-definition plugin ships the test Jenkinsfiles for Jenkins's own validator. Running the offline linter over them:

Result
Valid files with no false errors 287 / 287
Invalid files caught 90 / 90
... with the same message as Jenkins 90 / 90
Invalid files that need plugins or a controller to judge 33 (not counted above)

Reproduce with:

cargo build --release
python3 scripts/corpus_check.py   # clones the plugin at a pinned commit

Development

cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test
python3 scripts/corpus_check.py
pip install .   # builds the wheel with maturin and installs it

When the engine changes, bump version in Cargo.toml and the jenkinsfilelint-engine== pin in the root pyproject.toml together.

cargo test also lints every case in tests/jenkins/ and compares the result with tests/jenkins/expected.txt, which records what Jenkins's own validator said about the same file and explains each known difference.

Metadata

Release files for jenkinsfilelint-engine 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jenkinsfilelint-engine 0.3.1
File Size Uploaded Provenance Actions
jenkinsfilelint_engine-0.3.1.tar.gz 117.0 kB With provenance Details for jenkinsfilelint_engine-0.3.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for jenkinsfilelint-engine 0.3.1
File Actions
jenkinsfilelint_engine-0.3.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for jenkinsfilelint_engine-0.3.1-py3-none-win_amd64.whl
jenkinsfilelint_engine-0.3.1-py3-none-win32.whl Python 3 none Windows x86-32 Details for jenkinsfilelint_engine-0.3.1-py3-none-win32.whl
jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_x86_64.whl
jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_i686.whl Python 3 none Linux musl 1.2+ x86-32 Details for jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_i686.whl
jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_armv7l.whl Python 3 none Linux musl 1.2+ ARMv7l Details for jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_armv7l.whl
jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_aarch64.whl
jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32 Details for jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details for jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
jenkinsfilelint_engine-0.3.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for jenkinsfilelint_engine-0.3.1-py3-none-macosx_11_0_arm64.whl
jenkinsfilelint_engine-0.3.1-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for jenkinsfilelint_engine-0.3.1-py3-none-macosx_10_12_x86_64.whl

Total release size: 4.5 MB

Release files / jenkinsfilelint_engine-0.3.1.tar.gz

Download URL jenkinsfilelint_engine-0.3.1.tar.gz
Size 117.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5ca578314b95d1e9607a2b55882fee944771e437c40457a06abbc1c19796faae
BLAKE2b-256 checksum
How to use checksums
6026ba530243c5f1484da9a1ecfb3ac3e2aa51cb4f94e01423681b6860f080f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-win_amd64.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-win_amd64.whl
Size 287.7 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
b6ee1e8f95de75cc64b98e415fe0f2eb0a026a583705494ec97f54f80440bea9
BLAKE2b-256 checksum
How to use checksums
110ccf94c126aa43177df23fa7bfdb559e7433bd6aa6bc68ed360c5070cd923c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-win32.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-win32.whl
Size 267.0 kB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
c3aa7359182e63834514f7e61cecf897b058fe0d3ed26656f47e6f0462262afe
BLAKE2b-256 checksum
How to use checksums
45882867e4cc6defc857e4871fb49af7fab6010a33580779325856c4b1fcc131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_x86_64.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_x86_64.whl
Size 421.4 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
773c2062d68f5813b23b1d91311947bf19290b441ac5c7873057ee35de7dcf92
BLAKE2b-256 checksum
How to use checksums
92e7e93901e121260c26f1d7d160bbd3284be642d70f8059a160141448dc8a9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_i686.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_i686.whl
Size 426.3 kB
Tags Linux musl 1.2+ x86-32 Python 3
SHA-256 checksum
How to use checksums
b2d725f1aaeb91944e198deac881468d3e688c2c2239cc71678dd0713a79a361
BLAKE2b-256 checksum
How to use checksums
7951b13b083aece06fefca469ba077d181dd2be2c9f2536b79c2ef572bde8c5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_armv7l.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_armv7l.whl
Size 383.3 kB
Tags Linux musl 1.2+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
789a85be95236aeb514c5cb82c4e5d538e06335e9d949ca9cf77aebeeedc3985
BLAKE2b-256 checksum
How to use checksums
daad2ec6c6e513b365363a36d035277f3a212e7f2153bf6fc7478d8dc527a517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_aarch64.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-musllinux_1_2_aarch64.whl
Size 398.5 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0be7980e7ce0dd608de88896a6019923ab298233aab772ac87cce1e0092b2a6b
BLAKE2b-256 checksum
How to use checksums
42130318db6606bd0fdac66e1f195e7d35fed0ae48c1530677238edbff95270c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 368.7 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4d8aed7c59d4920a1dbf9a96b896139a4b147e9160249ee2a8309ab848e20dd6
BLAKE2b-256 checksum
How to use checksums
bf30ec0a164ce29c3ca9cd450689587cb3278dc983dc53f56decd635425496d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Size 384.5 kB
Tags Linux glibc 2.17+ x86-32 Python 3
SHA-256 checksum
How to use checksums
114f8a516b79b70432bfe4eeafd213347727e3206d5f89cd8a5b10738e5287cd
BLAKE2b-256 checksum
How to use checksums
a332504e8179690ed91e5a296b3e5fd7d924248e0c27e866e3c2f0701419340d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 355.2 kB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
8af680dc7284e71333b75968dec0f618ecab26a55275e9332515133fd6ac4ea2
BLAKE2b-256 checksum
How to use checksums
dc8d19e6d04fcebc7b69007891dfcbb5b6144939a57cc4f702f3839ef80ca48a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 351.1 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4d8fc3495986aae8cfd01c81c9d7d8a6fcb53d60553754c871e432ca0a09dc97
BLAKE2b-256 checksum
How to use checksums
656291fdb4194c8f1693d3b5871449c82a6cf1b6e828d32580ff8219544e3a67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-macosx_11_0_arm64.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-macosx_11_0_arm64.whl
Size 337.6 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
23294b8af5c6e45f46c9f26f3ef4447f9255fea26286520af6d6e0da5dd70c1d
BLAKE2b-256 checksum
How to use checksums
5022aa4f4ad51a2f89fc680a4c6871e261b2b2d0a110bbce97d4f4c0d7956dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / jenkinsfilelint_engine-0.3.1-py3-none-macosx_10_12_x86_64.whl

Download URL jenkinsfilelint_engine-0.3.1-py3-none-macosx_10_12_x86_64.whl
Size 358.0 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8e015385454b809c5ae090a59c6b1562c2f6516fda1ab03828176e00403f2da5
BLAKE2b-256 checksum
How to use checksums
2e89f8ccef30db98da251fa9a5012b22d9526d5dc8ce34c2e6f1cc6da1f3e2d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for jenkinsfilelint-engine 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for jenkinsfilelint_engine-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page