jflint is a CLI tool that helps lint a Declarative Jenkinsfile by wrapping the Jenkins Pipeline linting API. It sends the Jenkinsfile content to a specified Jenkins server and displays the validation result. The current stable version is 0.3.2. The tool supports Node.js v4–v7 (older versions). Unlike official Jenkins CLI methods (SSH/curl), jflint provides a simpler command-line interface, optional configuration file, and built-in handling of authentication and CSRF. It is a lightweight npm package with no external dependencies.
npm install jflintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows install and run commands for jflint CLI tool, including global install, npx usage, and config file example.
Upgrade Node.js to a modern version (v12+), though jflint may not be actively maintained for newer Node.
Ensure a Jenkins server is accessible and the URL is correct.
Use the config file to avoid exposing credentials in command line, or set environment variables.
Specify --csrf-disabled if Jenkins CSRF protection is turned off, or configure Jekins to accept CSRF token.
Check jenkinsUrl in config or -j option, ensure Jenkins is reachable.
Provide valid credentials via -u, -p, or config file.
Use --csrf-disabled if CSRF is disabled, or generate a crumb token.
No dependency data recorded yet.