jenkins-declarative-pipeline-per-repo

jenkins-declarative-pipeline-per-repo is a skill for Claude Code from selvarajmurugesan90/ops-engineering-skills. It costs 111 tokens per session (3,348 once invoked), scanned A, original, Apache-2.0.

Instructions for writing a Jenkinsfile stored in one repository, using Jenkins Declarative Pipeline syntax to define its build, test, packaging, and deployment stages.

In plain words
What is it for?
Use it when adding or repairing a repository’s Jenkinsfile, defining stages and conditions, or configuring failure notifications and cleanup steps.
Why use it?
It keeps pipeline configuration versioned and reviewed with the code, while helping diagnose incorrect stages, agents, conditions, notifications, and cleanup.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

Part of the cicd-tooling-skills plugin — 13 skills shipped together

Good fit Use it when adding or repairing a repository’s Jenkinsfile, defining stages and conditions, or configuring failure notifications and cleanup steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/selvarajmurugesan90/ops-engineering-skills/jenkins-declarative-pipeline-per-repo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add selvarajmurugesan90/ops-engineering-skills --skill jenkins-declarative-pipeline-per-repo
Clone the repo
git clone --depth 1 https://github.com/selvarajmurugesan90/ops-engineering-skills

Made for: Claude Code.

Or install cicd-tooling-skills, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jenkins-declarative-pipeline-per-repo

README.md
[![agentmods](https://agentmods.dev/badge/skills/selvarajmurugesan90/ops-engineering-skills/jenkins-declarative-pipeline-per-repo/github.svg)](https://agentmods.dev/skills/selvarajmurugesan90/ops-engineering-skills/jenkins-declarative-pipeline-per-repo)
Your own site
<a href="https://agentmods.dev/skills/selvarajmurugesan90/ops-engineering-skills/jenkins-declarative-pipeline-per-repo"><img src="https://agentmods.dev/badge/skills/selvarajmurugesan90/ops-engineering-skills/jenkins-declarative-pipeline-per-repo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jenkins-declarative-pipeline-per-repo

Your own site · 80×15
<a href="https://agentmods.dev/skills/selvarajmurugesan90/ops-engineering-skills/jenkins-declarative-pipeline-per-repo"><img src="https://agentmods.dev/badge/skills/selvarajmurugesan90/ops-engineering-skills/jenkins-declarative-pipeline-per-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,348 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 29
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 225
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 341
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 342
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.03348
Opus 5 $0.00056 $0.01674
Sonnet 5 $0.00022 $0.00670
Haiku 4.5 $0.00011 $0.00335

Measured 12d ago against content hash 3fc147ca6256, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

jenkins-declarative-pipeline-per-repo scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST -u ${JENKINS_USER}:${JENKINS_API_TOKEN} \
plugins/cicd-tooling/skills/jenkins-declarative-pipeline-per-repo/SKILL.md · 343 lines

How it starts

The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Jenkins Declarative Pipeline Per Repo

Purpose

A per-repo Jenkinsfile puts pipeline-as-code directly in the repository it builds: it's reviewed in the same pull request as the code change, versioned alongside it, and doesn't require a Jenkins administrator to touch a separate job configuration. This skill covers Jenkins Declarative Pipeline syntax specifically — the agent/stages/steps/post block structure, environment and when conditionals, and the concrete constructs (not generic CI concepts, which are covered in ci-cd-pipeline-design) needed to write a correct, maintainable Jenkinsfile that lives in a single repo. It also covers the specific trade-off of the per-repo model versus centralizing logic in a shared library, so a team can make an informed choice rather than defaulting to copy-paste.

When to use

  • A repository has no Jenkinsfile yet and needs one for build/test/package.
  • An existing per-repo Jenkinsfile is failing at a specific stage and needs debugging (syntax error, wrong agent label, a when condition that never matches).
  • Adding a post block for Slack/email notification on failure, or a always cleanup step (e.g. deleteDir()), to an existing pipeline.
  • Deciding whether pipeline logic that's growing complex in one Jenkinsfile should stay per-repo or be extracted into a shared library — see jenkins-centralized-shared-library for that migration.
  • Reviewing a Jenkinsfile PR and needing to know whether sh, script, or a plugin step is idiomatic for a given task.

Prerequisites & environment

  • A Jenkins controller (2.401+ LTS recommended for current Declarative Pipeline features) with the Pipeline plugin suite installed (workflow-aggregator), which ships Declarative Pipeline support.
  • The repo is registered as a Multibranch Pipeline or Pipeline job with "Pipeline script from SCM" pointing at Jenkinsfile in the repo root (or a path configured in the job) — the Jenkinsfile is not useful without a job/multibranch config that reads it from SCM.
  • Build agents (nodes) with the required labels available — e.g. a docker or linux-x64 label matching what the Jenkinsfile's agent block requests. Confirm labels via Manage Jenkins → Nodes.
  • Credentials (SSH keys, registry tokens, cloud creds) already created in Manage Jenkins → Credentials with known IDs — a Jenkinsfile only references a credential ID (${JENKINS_CRED_ID}), it never stores the secret value itself.
  • For Docker-based agents: the controller/agent has Docker available and the Docker Pipeline plugin installed if using agent { docker { ... } }.

Read the full file on GitHub · 343 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 343 lines · 111 tokens per session scan A 3fc147ca6256

Subscribe to this mod's changes

jenkins-declarative-pipeline-per-repo is a skill published in the GitHub repository selvarajmurugesan90/ops-engineering-skills (39 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 111 tokens to every session and 3,348 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

import-prom-rule

Bulk import of a Prometheus alert rule YAML file (create a whole set of rules at once). Dedicated to handling a remote URL or local YAML text, automatically parsing the three formats groups / a plain rules array / a single rule. ⚠️ Do not use this skill for single-rule creation — when the user describes a single alert…

ccfos/nightingale · 125 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

configure-env-variables

Configures environment variables for Power Pages site settings to support ALM across environments. Creates environment variable definitions in Dataverse, guides the user through linking site settings to those variables via the Power Pages Management app, adds the variables to the solution, and generates a…

microsoft/power-platform-skills · 119 tokens

atmos-profiles

Atmos profiles: profile directories, --profile and ATMOSPROFILE activation, profile merge behavior, environment switching, and routing profile-specific auth/toolchain/config overrides.

cloudposse/atmos · 35 tokens

managing-github-actions-secrets

Creates and updates GitHub Actions secrets for PostHog workflows. Use when adding a new CI secret, rotating an existing secret, wiring a workflow to an API token, package registry credential, deploy key, or any value referenced via ${{ secrets. }} in .github/workflows/.

PostHog/posthog-foss · 67 tokens

webhook-management

Configure and validate CCAM webhook targets across supported chat, incident, automation, and generic providers. Use when listing provider requirements, creating or updating a target, scoping it to alert rules, sending a test notification, reviewing delivery history, or deleting a target.

hoangsonww/Claude-Code-Agent-Monitor · 56 tokens