> For the complete documentation index, see [llms.txt](https://docs.pagerly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagerly.io/sre-ai-agent/data-sources/jenkins.md).

# Jenkins

## What the Agent Can Do

* List Jenkins jobs and their current status
* Get detailed job info — last build, health score, build stability
* List recent builds with results and durations
* Fetch build console logs for debugging failed deployments

## Setup Instructions

1. Log into your **Jenkins instance**
2. Click your username (top right) > **Configure**
3. Scroll to **API Token** > click **Add new Token**
4. Name it `Pagerly` and click **Generate**
5. Copy the token, your Jenkins URL, and username

## Required Credentials

| Field                | Description                              | Example                       |
| -------------------- | ---------------------------------------- | ----------------------------- |
| **API Token**        | Jenkins API token from your user profile | `11a1a1a1a1a1a1a1a1...`       |
| **Jenkins Username** | Your Jenkins username                    | `admin`                       |
| **Jenkins URL**      | Your Jenkins server URL                  | `https://jenkins.company.com` |

## Context Prompt Tips

> *"Our deploy pipeline is in the deploy/ folder. Production builds are deploy/api-prod. Staging builds end with -staging."*

## Docs

* [Jenkins Remote Access API](https://www.jenkins.io/doc/book/using/remote-access-api/)
