Jenkins Integration
Correlate failed builds and deployments with incidents. OpenSRE reads your Jenkins server over its REST API to answer: “was there a recent build or deployment that coincides with this alert?”Commands
What the agent can do
During an investigation (or in chat), the agent can call these tools:list_jenkins_builds— Recent builds for a job with status (SUCCESS / FAILURE / RUNNING / ABORTED) and timestamp.get_jenkins_build_log— The console log for a specific build, to read the failing step or error.get_jenkins_pipeline_stages— Per-stage status and duration for a Pipeline build (empty for freestyle jobs).list_jenkins_jobs— All jobs with their last-build status.list_jenkins_running_builds— Builds currently in progress across all jobs.
Setup
1. Create a Jenkins API token
In Jenkins: click your username (top-right) → Security → API Token → Add new Token → Generate. Copy the token — Jenkins shows it only once. API access uses HTTP Basic auth with your username and this token (not your password).2. Configure credentials
Either run the setup wizard:
Folder-organized jobs are supported — pass the full path, e.g. team/payment-service.
3. Verify connectivity
Jenkins connectivity successful at http://localhost:8080 (node: built-in).