Repository navigation
Releases
v2.0.0
jenkins-lint 2.0 is the project formerly called jenkinsfilelint, rewritten in Rust as a fast offline linter.
pip install jenkins-lint
jenkins-lint .- Checks Groovy syntax, Declarative Pipeline structure and security in milliseconds, with no Jenkins, Docker or JVM.
- Fixes what it can with
--fixand--unsafe-fixes, as in ruff. --remotealso validates the files with your Jenkins.- Outputs text, JSON, SARIF or GitHub annotations.
Breaking: no compatibility with 1.x. See Migrating to 2.0.
Pull requests
- Rename the project to jenkins-lint (#88)
- Check offline by default, add
--remote, remove--local(#89) - jenkins-lint 2.0: one Rust binary, one check, fixes as in ruff (#92)
--output-format, and GitHub Actions annotations (#94)
Full Changelog: v1.7.2...v2.0.0
v1.7.2
What's Changed
🚀 Features
- feat: check every Jenkinsfile in a directory by @shenxianpeng in #84
📝 Documentation
- docs: add a documentation site by @shenxianpeng in #83
Full Changelog: v1.7.1...v1.7.2
v1.7.1
What's Changed
🚀 Features
- feat: turn off an audit rule for every file with --ignore by @shenxianpeng in #82
🐛 Bug fixes
- fix: run the audit and offline hooks once for all files by @shenxianpeng in #80
Full Changelog: v1.7.0...v1.7.1
v1.7.0
What's Changed
🚀 Features
- feat: add the unrestricted-input audit rule by @shenxianpeng in #76
- feat: add the unpinned-image audit rule by @shenxianpeng in #75
- feat: add the unpinned-library audit rule by @shenxianpeng in #74
- feat: add the controller-execution audit rule by @shenxianpeng in #73
- feat: add the script-injection audit rule by @shenxianpeng in #70
- feat: add --audit, with the secret-interpolation rule by @shenxianpeng in #69
- feat: parse GString placeholders and accept command chains by @shenxianpeng in #66
🐛 Bug fixes
- fix: show unrestricted-input from the pedantic persona by @shenxianpeng in #78
- fix: measure the new audit rules on public Jenkinsfiles by @shenxianpeng in #77
- fix: agree with Jenkins on 17,373 public Jenkinsfiles by @shenxianpeng in #71
📝 Documentation
- docs: take the security audit out of preview by @shenxianpeng in #79
👻 Maintenance
- chore: show what an engine change changes on public Jenkinsfiles by @shenxianpeng in #72
Full Changelog: v1.6.1...v1.7.0
v1.6.1
What's Changed
🐛 Bug fixes
- fix: report non-UTF-8 Jenkinsfiles instead of crashing; explain a leading BOM by @shenxianpeng in #63
📝 Documentation
- docs: link the demo GIF so it shows on PyPI by @shenxianpeng in #64
Full Changelog: v1.6.0...v1.6.1
v1.6.0
Highlights
Offline checking. jenkinsfilelint no longer needs a Jenkins server. Without one configured, it checks Groovy syntax and Declarative Pipeline structure offline, in milliseconds, with no Docker or JVM, instead of failing with "Jenkins URL not provided". Use --offline or the new jenkinsfilelint-offline pre-commit hook to check offline even when JENKINS_URL is set.
Offline checking can't see your plugins, so step names and parameters aren't checked. Remote mode and --local work as before.
Upgrade notes
pip install jenkinsfilelintnow also installsjenkinsfilelint-engine, a prebuilt wheel for Linux, macOS and Windows. Other platforms install as before, without offline checking.
What's Changed
- feat: add --offline mode that lints Jenkinsfiles without Jenkins, Docker or a JVM by @shenxianpeng in #59
- chore(deps): bump the github-action group with 5 updates by @dependabot[bot] in #62
Full Changelog: v1.5.3...v1.6.0
v1.5.3
What's Changed
🚀 Features
- perf: validate files in parallel over reused connections by @shenxianpeng in #61
Full Changelog: v1.5.2...v1.5.3
v1.5.2
What's Changed
🐛 Bug fixes
- fix: give non-Declarative files one verdict instead of matching echoed content by @shenxianpeng in #60
📝 Documentation
- docs: regenerate demo.gif with a taller, more readable layout by @shenxianpeng in #55
👻 Maintenance
- chore: repository health check (coverage, checkout credentials) by @shenxianpeng in #58
📦 Dependencies
- chore(deps): bump the github-action group with 4 updates by @dependabot[bot] in #57
- chore(deps): bump docker/setup-buildx-action from 4.2.0 to 4.3.0 in the github-action group by @dependabot[bot] in #56
- chore(deps): bump the github-action group with 6 updates by @dependabot[bot] in #54
Full Changelog: v1.5.1...v1.5.2
v1.5.1
What's Changed
🚀 Features
- feat: add common plugins to docker image and document custom image workflow by @shenxianpeng in #53
- feat: add multi-arch (arm64) image builds for jenkinsfilelint-server by @arulrajnet in #52
👻 Maintenance
- chore: add OCI index annotations for multi-arch image description on ghcr.io by @shenxianpeng in #50
- chore: set org.opencontainers.image.description label in Docker metadata by @shenxianpeng in #49
Full Changelog: v1.5.0...v1.5.1
v1.5.0
What's Changed
🚀 Features
- feat: add local Docker-based Jenkins server for Jenkinsfile validation by @shenxianpeng in #38
🐛 Bug fixes
- fix: prevent container name conflict when crashed container lingers by @shenxianpeng in #40
- fix: add explicit docker pull before run to prevent false timeout on first use by @shenxianpeng in #39
🚦 Tests
- test: add Docker integration tests for end-to-end validation by @shenxianpeng in #41
👻 Maintenance
- chore: add version-resolver entries and PR auto-labeler by @shenxianpeng in #48
- chore: use RESOLVED_VERSION so release-drafter respects PR labels by @shenxianpeng in #46
- chore: simplify README to focus on pre-commit setup by @shenxianpeng in #44
- chore: add hadolint pre-commit hook and update ruff version by @shenxianpeng in #43
📦 Dependencies
- chore(deps): bump the github-action group with 3 updates by @dependabot[bot] in #37
Full Changelog: 1.4.1...v1.5.0