jenkins-ops
Skill0 starsChanged 7 days agoApache-2.0View on GitHub
Operate Jenkins controllers with a strict capability-aware fallback chain. Prefer any configured Jenkins MCP server, fall back to the Jeeves CLI, and use Jenkins HTTP APIs only as a last resort. Use for jobs, builds, console logs, queues, nodes or agents, artifacts, pipeline stages, replays, rebuilds, cancellations, and build triggers on any Jenkins instance.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ligenjian001-ai/agent-skillstheir own version, first seen Mar 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ligenjian001-ai/agent-skills★ 8same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 16 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
If multiple controllers remain plausible, ask which one to use.
- Distinctive: line 20
Use the [repository context guide][repo-context] for CI and controller discovery.
- Distinctive: line 24
Use the highest available tier that supports the current operation:
- Distinctive: line 30
Do not choose a lower tier because it is shorter, faster, or more familiar.
- Distinctive: line 67
Use Jeeves only after Tier 1 is unavailable for the operation.
- Distinctive: line 69
Verify availability and inspect the installed command surface:
- Very specific: line 77
Check the relevant group help, such as jeeves job --help or jeeves build --help.
- Very specific: line 78
Prefer an existing named profile or the JEEVES_URL, JEEVES_USER, and JEEVES_TOKEN environment variables.
- Distinctive: line 79
Never print a token, place it in command-line arguments, or store it in a Jeeves profile.
- Distinctive: line 80
Do not install Jeeves or change profiles unless the user explicitly requests that local change.
- Distinctive: line 82
If Jeeves is absent, report the [public releases page][jeeves-releases] as the setup path and continue to Tier 3 when it is configured and …
- Distinctive: line 88
Use HTTP only after both higher tiers are unavailable for the operation.
- Very specific: line 90
Prefer JENKINS_URL, JENKINS_USER, and JENKINS_TOKEN environment variables.
- Very specific: line 91
Keep TLS verification enabled.
- Distinctive: line 92
Prefer API tokens. Modern Jenkins versions normally exempt API-token-authenticated requests from CSRF crumbs.
- Distinctive: line 94
Use form data or URL encoding for parameters instead of interpolating untrusted values into a URL.
- Distinctive: line 98
If no tier has the required capability and valid access, stop with an actionable summary of what is missing.
- Distinctive: line 102
Run read-only operations immediately when the controller is unambiguous.
- Very specific: line 106
Read the [safety guide][safety-guide] before triggering, rebuilding, replaying, cancelling, changing local configuration, or using a raw …
- Distinctive: line 113
Check status with the highest available tier for that follow-up operation.
- Distinctive: line 116
If dispatch outcome is uncertain, report that uncertainty and inspect the queue/build history.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Jenkins Ops
Operate one Jenkins controller at a time and apply the fallback chain separately to every requested operation.
Establish the Target
- Confirm Jenkins is the relevant CI system. Inspect the repository for a
Jenkinsfile, Jenkins configuration, and other CI configuration when the request is ambiguous. - Resolve the controller from, in descending confidence order:
- A controller, URL, MCP server, or Jeeves profile named by the user.
- A Jenkins URL or controller identifier in repository configuration.
- An unambiguous configured Jenkins MCP server,
JEEVES_PROFILE, orJENKINS_URL/JEEVES_URLvalue.
- If multiple controllers remain plausible, ask which one to use. Never guess the target of a mutation.
- Identify the exact operation and whether it is read-only, mutating Jenkins, or changing local Jeeves configuration.
Use the repository context guide for CI and controller discovery.
Enforce the Fallback Chain
Use the highest available tier that supports the current operation:
- Jenkins MCP
- Jeeves CLI
- Jenkins HTTP API
Do not choose a lower tier because it is shorter, faster, or more familiar. Using a lower tier for one capability gap does not waive MCP-first behaviour for later operations.
A tier is unavailable for an operation only when one of these conditions is established:
- The runtime exposes no matching tool or executable.
- A single safe health or read probe establishes a connection or authentication failure.
- The exposed inputs and descriptions do not cover the required capability.
- The authenticated identity lacks permission for that operation.
State the reason before falling back. Do not repeatedly probe a known outage. Treat an uncertain result from a mutating call as potentially successful and never retry it automatically.
Tier 1: Jenkins MCP
Inspect the tools surfaced by the current runtime for Jenkins MCP servers. MCP namespaces and tool names vary, so match by server and tool descriptions rather than assuming a prefix, fixed tool count, or exact names.
- Select the MCP server associated with the resolved controller. Ask if multiple servers remain ambiguous.
- Prefer a read-only identity or status tool as the health/auth probe. If neither exists, use the smallest read-only tool needed for the request. An error that names
anonymousas the principal means the request reached Jenkins unauthenticated: treat it as an authentication failure for the whole server, not a permission gap on one tool. Treat a successfulanonymousidentity the same way when the request needs an authenticated user, such as attributing builds to them, or another tier has credentials for the controller. - Match the operation to the MCP capability before declaring a gap:
| Intent | Required MCP capability |
| Check access or health | Identify the user or read controller status |
| Discover jobs | List, fetch, or search jobs |
| Inspect a build | Read build metadata, changes, SCM data, or test results |
| Read logs | Fetch, search, or stream console output |
| Inspect queues | List queue items or fetch a queue item |
| Inspect agents | List nodes or read node health and launcher details |
| Start or repeat work | Trigger, rebuild, or replay a build |
| Cancel work | Cancel a queue item or running build |
| Retrieve outputs | List or download artifacts, or read Pipeline stages |
- Combine MCP read tools when that satisfies the operation. Fall back only for the missing operation, not the whole session.
See the MCP capability guide for runtime discovery and common capability mappings.
Tier 2: Jeeves CLI
Use Jeeves only after Tier 1 is unavailable for the operation.
Verify availability and inspect the installed command surface:
command -v jeeves jeeves --version jeeves --no-update-check --help- Check the relevant group help, such as
jeeves job --helporjeeves build --help. Do not assume a command exists from the version string alone. - Prefer an existing named profile or the
JEEVES_URL,JEEVES_USER, andJEEVES_TOKENenvironment variables. If onlyJENKINS_URL,JENKINS_USER, andJENKINS_TOKENexist, pass their values to the corresponding Jeeves variables for that invocation without persisting them. - Never print a token, place it in command-line arguments, or store it in a Jeeves profile. If no usable authentication is configured, request it or continue only when Tier 3 has independently configured credentials.
- Do not install Jeeves or change profiles unless the user explicitly requests that local change.
If Jeeves is absent, report the public releases page as the setup path and continue to Tier 3 when it is configured and capable.
See the Jeeves reference for current commands, structured output, and version-sensitive behaviour.
Tier 3: Jenkins HTTP API
Use HTTP only after both higher tiers are unavailable for the operation. Require an explicit controller URL and usable authentication; never infer credentials.
- Prefer
JENKINS_URL,JENKINS_USER, andJENKINS_TOKENenvironment variables. - Keep TLS verification enabled. Use a user-provided CA bundle for private certificate authorities; never add
curl -kor--insecure. - Prefer API tokens. Modern Jenkins versions normally exempt API-token-authenticated requests from CSRF crumbs; handle a crumb only when the controller requires one.
- Reuse exact job and build URLs returned by Jenkins, MCP, or Jeeves. For folders, encode each item name and insert
/job/between path segments. - Use form data or URL encoding for parameters instead of interpolating untrusted values into a URL.
See the HTTP API reference for last-resort recipes.
If no tier has the required capability and valid access, stop with an actionable summary of what is missing. Do not improvise a fourth access path or weaken authentication or TLS settings.
Apply Safety Gates
Run read-only operations immediately when the controller is unambiguous. Before a mutation that the user has not already authorised, confirm the controller, job, action, and parameters once for that exact scope.
Require explicit user direction before changing Jeeves profiles or persistent defaults. Never treat broad authorisation as permission for another controller or unrelated job.
Read the safety guide before triggering, rebuilding, replaying, cancelling, changing local configuration, or using a raw HTTP POST.
Verify Mutations
After a mutation:
- Capture any queue item, build number, or URL returned by the call.
- Check status with the highest available tier for that follow-up operation.
- Account for concurrent builds when a trigger does not return a build number.
- Report the final known state and canonical Jenkins URL.
- If dispatch outcome is uncertain, report that uncertainty and inspect the queue/build history. Do not re-trigger automatically.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

