Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Jenkins CI/CD pipeline management — monitor builds, trigger pipelines, analyze logs, and track SCM changes for network automation workflows.
.claude/skills/automateyournetwork-jenkins-cicd/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-21 | ✗→✓ | ▲ Improved | 368% | 0% |
| case-22 | ✓→✓ | = Same ✓ | 69% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 233% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 140% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 132% | 0% |
Manage Jenkins CI/CD pipelines for network automation workflows. This skill provides operational workflows for monitoring job and build status, triggering builds with parameters, analyzing build logs for troubleshooting, and tracking SCM changes across Jenkins projects.
The Jenkins MCP server is an official Jenkins plugin running natively inside Jenkins via Streamable HTTP transport — netclaw connects to it as a remote HTTP client.
Never trigger a build or modify build metadata without explicit operator confirmation. All write operations (triggerBuild, updateBuild) require human-in-the-loop approval per Constitution XIV. Always read current state before proposing any write action (Constitution II — Read-Before-Write).
Monitor Jenkins job status, build results, queue state, and pipeline run history.
getJobs with optional pagination (offset, limit) and regex name filter to discover available jobs. Tool: getJobs Parameters: { "nameFilter": "deploy-.*", "offset": 0, "limit": 25 }
getJob with the full job name (supports folder paths like folder1/folder2/job-name) to retrieve job configuration, last build number, and health status. Tool: getJob Parameters: { "fullName": "network-automation/deploy-network-config" }
getBuild with job name and build number to retrieve result, duration, timestamp, parameters, and causes. Tool: getBuild Parameters: { "jobFullName": "deploy-network-config", "buildNumber": 42 }
getQueueItem to inspect queued build requests — waiting reason, position, estimated start time. Tool: getQueueItem Parameters: { "queueId": 1234 }
getPipelineRuns to list pipeline execution history with status, duration, and branch info. Tool: getPipelineRuns Parameters: { "jobFullName": "deploy-network-config" }
Trigger new builds with parameters, track queue-to-build progression, and update build metadata. All write operations require operator confirmation.
getJob to confirm the job exists and inspect its parameter definitions before triggering (read-before-write, Constitution II). Tool: getJob Parameters: { "fullName": "deploy-network-config" } → Returns parameter definitions: BRANCH (String), DRY_RUN (Boolean), ENVIRONMENT (Choice)
Confirmation prompt: "Ready to trigger build for 'deploy-network-config' with parameters:
Proceed? yes/no]"
triggerBuild with the confirmed parameters. Supported parameter types: String, Boolean, Choice, Text, Password, Run. Tool: triggerBuild Parameters: { "jobFullName": "deploy-network-config", "parameters": [ { "name": "BRANCH", "value": "main" }, { "name": "DRY_RUN", "value": "true" }, { "name": "ENVIRONMENT", "value": "staging" } ] } → Returns queue item ID
getQueueItem to monitor until the build starts, then switch to getBuild. Tool: getQueueItem Parameters: { "queueId": <returned-queue-id> } → When build starts, returns build number
getBuild to poll build status until result is available. Tool: getBuild Parameters: { "jobFullName": "deploy-network-config", "buildNumber": <build-number> } → Result: SUCCESS | FAILURE | UNSTABLE | ABORTED | NOT_BUILT
updateBuild to set a descriptive display name or mark the build as keep-forever. Requires confirmation. Tool: updateBuild Parameters: { "jobFullName": "deploy-network-config", "buildNumber": <build-number>, "displayName": "Production Deploy - v2.4.1", "keepLog": true }
Retrieve and search build logs for troubleshooting failed builds, identifying errors, and diagnosing pipeline issues.
getBuildLog with job name and build number. For large logs, use the start offset parameter for pagination. Tool: getBuildLog Parameters: { "jobFullName": "deploy-network-config", "buildNumber": 42 } → Returns console output text
start offset to retrieve subsequent sections. Tool: getBuildLog Parameters: { "jobFullName": "deploy-network-config", "buildNumber": 42, "start": 50000 } → Returns output starting from byte offset 50000
searchBuildLog with a regex pattern to find specific lines (errors, warnings, timeouts). Tool: searchBuildLog Parameters: { "jobFullName": "deploy-network-config", "buildNumber": 42, "pattern": "ERROR|FATAL|Exception" } → Returns matching log lines
getPipelineRunLog for pipeline jobs that produce structured run logs. Tool: getPipelineRunLog Parameters: { "jobFullName": "deploy-network-config", "runId": "42" }
Build logs can be very large (hundreds of MB for verbose builds). Guidelines:
searchBuildLog to find relevant sections before retrieving the full logstart offset pagination to retrieve specific sectionsERROR, FATAL, Exception, FAILURE, or timeout firstTrack source code changes associated with Jenkins jobs and builds — correlate builds with commits, find jobs by repository, and review change history.
getJobScm to view the repository URL, branch spec, and polling configuration for a job. Tool: getJobScm Parameters: { "jobFullName": "deploy-network-config" } → Returns: repository URL, branches, credential ID, polling config
getBuildScm to see the exact revision (commit hash) and branch checked out for a specific build. Tool: getBuildScm Parameters: { "jobFullName": "deploy-network-config", "buildNumber": 42 } → Returns: revision hash, branch name at build time
getBuildChangeSets to see all commits included in a build — author, message, timestamp, and affected files. Tool: getBuildChangeSets Parameters: { "jobFullName": "deploy-network-config", "buildNumber": 42 } → Returns: list of change sets with commit details
findJobsWithScmUrl to discover all Jenkins jobs configured to build from a specific repository. Tool: findJobsWithScmUrl Parameters: { "scmUrl": "https://github.com/org/network-configs" } → Returns: list of jobs using this repository
Verify Jenkins connectivity, authentication, and instance health. Recommended as a pre-flight check before first use and as a diagnostic tool when other operations fail.
whoAmI to confirm the connection works and inspect the authenticated user's identity and permissions. Tool: whoAmI Parameters: {} → Returns: user name, authorities/permissions list
getStatus to verify Jenkins is healthy and operational. Tool: getStatus Parameters: {} → Returns: mode (NORMAL/SHUTDOWN), version, quietingDown status
whoAmI and getStatus to validate the connectionwhoAmI to diagnose credential issuesgetStatus to check if Jenkins is shutting down or in maintenance modewhoAmI to verify the user has required authoritiesAll Jenkins interactions are logged to the GAIT audit trail via gait_mcp tools at the skill invocation level (per Constitution IV — GAIT Audit Trail).
For each Jenkins operation:
gait_mcp.log_action({ action: "jenkins_tool_call", tool: "getJobs", parameters: { "nameFilter": "deploy-.*" }, status: "initiated" })
gait_mcp.log_action({ action: "jenkins_tool_call", tool: "getJobs", result_summary: "Returned 12 jobs matching filter", status: "completed" })
gait_mcp.log_action({ action: "jenkins_write_confirmation", tool: "triggerBuild", parameters: { "jobFullName": "deploy-network-config", "parameters": [...] }, operator_confirmed: true, status: "approved" })
getJob to verify a job exists and inspect its parameters before triggerBuild or updateBuildfolder1/folder2/job-name) — always use the full namegetJob before triggering — pass correct types (String, Boolean, Choice, Text, Password, Run)searchBuildLog before full log retrieval to avoid overwhelming context with large console outputOther measured skills in the registry, with their headline benchmark lift.