akin-ozer avatar

Jenkinsfile Validator

Validates Jenkinsfiles and shared library code with pure bash and standard Unix tools, no Jenkins server required. Catches syntax errors in both declarative and scripted pipelines, scans for hardcoded credentials, and flags best practice violations like missing timeouts or unrestricted agent blocks. The layered approach is smart: it detects pipeline type automatically, runs syntax checks first, then security and maintainability scans. Exit codes are clean for CI gating, and there's a strict mode that fails on warnings. Most useful during local development or in pull request checks before pipelines hit actual Jenkins infrastructure. The offline-first design with optional plugin doc lookups is refreshingly practical for air-gapped environments.

skills.sh installs
706
GitHub stars
337
last updated
Aug 21, 2026

Install

$ npx -y skills add akin-ozer/cc-devops-skills --skill jenkinsfile-validator --agent claude-code

Installs into .claude/skills of the current project.

Files

Jenkinsfile Validator Skill

Use this skill to validate Jenkins pipelines and shared libraries with local scripts first, then optionally enrich findings with plugin documentation.

Trigger Phrases

Use this skill when requests look like:

  • "Validate this Jenkinsfile"
  • "Check this pipeline for security issues"
  • "Lint my Declarative/Scripted pipeline"
  • "Why is this Jenkins pipeline failing syntax checks?"
  • "Validate vars/.groovy or src/**/.groovy shared library files"

Scope

This skill validates:

  • Declarative pipelines (pipeline { ... })
  • Scripted pipelines (node { ... } and Groovy-style pipelines)
  • Shared library files (vars/*.groovy, src/**/*.groovy)
  • Hardcoded credential patterns
  • Pipeline best practices and maintainability signals

Prerequisites

Run commands from repository root unless noted.

Required tools

  • bash
  • grep
  • sed
  • awk
  • head
  • wc
  • find (needed for shared-library directory scans)

Recommended tools

  • jq (optional; improves JSON-heavy troubleshooting workflows)

Sponsors

Details

Repository
github.com/akin-ozer/cc-devops-skills
Categories
DevOps & CI/CD, Code Review & Quality
First seen
Jun 3, 2026

More from akin-ozer/cc-devops-skills

All 31
1akin-ozer avatarazure-pipelines-generatorakin-ozer/cc-devops-skillsGenerate/create/scaffold azure-pipelines.yml, stages, jobs, steps, or reusable templates.692skills.sh installs
2microsoft avatarmicrosoft-foundrymicrosoft/azure-skillsDeploy, evaluate, fine-tune, and manage Foundry agents end-to-end with azd: hosted agent scaffold/run/deploy, prompt agent create, batch eval, continuous eval, 671.4Kskills.sh installs
3microsoft avatarazure-preparemicrosoft/azure-skillsPrepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workf661.6Kskills.sh installs
4microsoft avatarazure-validatemicrosoft/azure-skillsPre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity pe659.9Kskills.sh installs
5microsoft avatarazure-computemicrosoft/azure-skillsAzure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight 614.1Kskills.sh installs
6google avatargoogle-agents-cli-adk-codegoogle/agents-cliThis skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state560.7Kskills.sh installs