Connecting Jenkins
How to link your Jenkins instances to BuildButler for automatic pipeline data collection.
BuildButler uses the Jenkins REST API to collect build data. This guide walks through creating credentials and adding your first connection.
Generate a Jenkins API token
- Log in to Jenkins as the user you want BuildButler to use (a service account is recommended).
- Click your username in the top-right → Configure.
- Under API Token, click Add new Token.
- Give it a name like
buildbutlerand click Generate. - Copy the token — you won't be able to see it again.
Add the connection in BuildButler
Navigate to Settings → Connections → Add Jenkins Instance and fill in the form:
Click Test Connection to verify. BuildButler will call
/api/json?tree=jobs[name] and confirm it can read your job list.
Permissions required
The API user needs at minimum:
- Overall/Read — access the API
- Job/Read — list and read job configs
- Run/Read — access build details and logs
If you use the Role-Based Authorization Strategy plugin, create a role with these permissions and assign it to your service account.
Multiple instances
You can connect as many Jenkins controllers as you like. Each connection syncs independently and appears as a separate source in the dashboard filter bar.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
401 Unauthorized | Bad token or username | Regenerate the API token |
403 Forbidden | Missing permissions | Add the required permissions to the user |
| Timeout | Firewall or network issue | Ensure BuildButler can reach the Jenkins URL |
| SSL error | Self-signed certificate | Set JENKINS_TLS_REJECT_UNAUTHORIZED=false |