> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Jenkins

**Authentication:** API token. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow.

## Sample use cases

* List failed builds across the `infra` folder in the last 24 hours.
* Trigger the `nightly-deploy` job and notify #releases when it completes.
* Find jobs that haven't run in 60 days for cleanup review.

## Available Tools

#### trigger_build

Trigger a new Jenkins build for a job. Optionally pass build parameters. Returns the queue item URL. Use list_jobs to...

#### get_build

Get details of a specific Jenkins build including result, duration, and timestamps. Use list_builds to find valid bui...

#### list_builds

List builds for a Jenkins job with pagination. Returns build numbers, results, and timestamps. Use offset and limit f...

#### get_build_log

Get the console output of a Jenkins build as plain text. Use list_builds to find valid build numbers.

#### stop_build

Stop a running Jenkins build. Use list_builds to find builds where building=true.

#### list_jobs

List Jenkins jobs with pagination. Returns job names, URLs, and status colors. Use offset and limit for next page.

#### get_job

Get Jenkins job details by name including build history, health, and configuration. For jobs in folders, use 'folder/...

#### get_job_config

Get the XML configuration of a Jenkins job. Returns the raw config.xml. Use list_jobs to find valid job names.

#### enable_job

Enable a disabled Jenkins job so it can be built. Use list_jobs to find valid job names.

#### disable_job

Disable a Jenkins job to prevent new builds. The job remains visible but cannot be triggered. Use list_jobs to find v...

#### delete_job

Permanently delete a Jenkins job and all its build history. This cannot be undone. Use list_jobs to find valid job na...

#### list_nodes

List all Jenkins nodes (agents and built-in). Returns node names, executor counts, and online/offline status.

#### get_node

Get details of a Jenkins node including executors, offline status, and configuration. Use list_nodes to find valid na...

#### list_queue_items

List items in the Jenkins build queue. Shows jobs waiting to be built, why they are queued, and whether they are bloc...

#### cancel_queue_item

Cancel a queued Jenkins build. Use list_queue_items to find valid queue IDs.

#### list_plugins

List all installed Jenkins plugins. Returns plugin names, versions, and whether updates are available.

#### get_system_info

Get Jenkins system information including mode, executor count, security status, and whether Jenkins is preparing for...