jenkinsfile-validator

Validate Jenkins pipeline scripts for syntax, security, and best practices.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill jenkinsfile-validator-sudohakan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jenkinsfile-validator
Source: https://github.com/sudohakan/claude-code-dotfiles/tree/main/config/skills/cc-devops-skills/devops-skills-plugin/skills/jenkinsfile-validator
Command: npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill jenkinsfile-validator-sudohakan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the validation, linting, and security auditing of Jenkinsfiles, catching syntax errors, best practice violations, and potential security vulnerabilities before they cause pipeline failures.

Core Features & Use Cases

  • Syntax Validation: Checks both Declarative and Scripted Jenkinsfile syntax.
  • Best Practices: Enforces performance, security, and maintainability guidelines.
  • Security Auditing: Detects hardcoded credentials, secrets, and other security risks.
  • Shared Library Validation: Validates vars/*.groovy and src/**/*.groovy files.
  • Use Case: Before committing a complex Jenkinsfile, run this Skill to ensure it's syntactically correct, adheres to team standards, and doesn't contain any exposed secrets.

Quick Start

Validate the Jenkinsfile located in the current directory by running bash scripts/validate_jenkinsfile.sh Jenkinsfile.

Frequently Asked Questions about jenkinsfile-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate a Jenkinsfile for syntax errors before committing?

To validate a Jenkinsfile, run the shell script locally to check for structural and syntax errors. This catches issues in both Declarative and Scripted pipelines before they cause failures in your CI environment.

Can I lint Jenkins Shared Library groovy files for best practices?

Yes, you can lint Jenkins Shared Library files by validating the groovy scripts. The tool checks `vars/*.groovy` and `src/**/*.groovy` files to enforce performance, security, and maintainability best practices.

How do I check a Jenkins pipeline script for hardcoded credentials?

Checking a Jenkins pipeline script for hardcoded credentials requires a security audit. The validation process detects exposed secrets and hardcoded credentials within your Jenkinsfile to mitigate potential security risks.

Does Jenkinsfile validation work for both Declarative and Scripted pipelines?

Yes, Jenkinsfile validation works for both Declarative and Scripted pipelines. It analyzes the syntax and structure of either format, ensuring comprehensive local analysis without needing a running Jenkins server.

Why should I run a local Jenkinsfile linter instead of waiting for the Jenkins server?

Running a local Jenkinsfile linter catches syntax errors, best practice violations, and security vulnerabilities early. This prevents broken pipeline executions and ensures your scripts adhere to team standards before committing code.