/
/
Find what broke the build, not just that it broke
For IT, DevOps and release engineers who want the first failing run and the commits behind it, by asking their AI assistant.
On this page
Connector
Connect Azure DevOps, pick your AI tool and paste the prompt.
The problem
Failing builds get rerun before anyone asks what changed
When a pipeline starts failing it often gets rerun several times before anyone works out what changed. Finding the first failing run and the commits since the last success means paging through run history and commit lists.
Without PopdockAI
- Page through run history for the last success
- Find the first failing run
- List the commits in between by hand
- Rerun the pipeline and hope
With PopdockAI
- Recent runs are read to find the last success and first failure
- Commits between the two are listed
- Likely causes are ranked from the changes
- It says build logs are not available rather than guessing
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Work out why `{pipeline-name}` in project `{project}` (all projects if empty) is failing and what changed when it started.
**Step 1: Resolve the pipeline**
Call `azure-devops-get-build-definition` with name.contains `{pipeline-name}` and `azure-devops-get-pipeline` with name.contains `{pipeline-name}`. If several match, list them and stop. Use the definition id for classic builds and the pipeline id for YAML pipelines.
**Step 2: Read recent runs**
For a build definition call `azure-devops-get-build` with definition-id; for a YAML pipeline call `azure-devops-get-pipeline-run` with pipeline-id. Take the latest 20 runs and find the first failing run after the last success, and the failure rate.
**Step 3: Find what changed**
Call `azure-devops-get-commit` for the repository-id of the first failing build (from `azure-devops-get-build`) with author-date.from set near that run. List commits between the last green run and the first red one with author and message.
**Step 4: Report**
Failure rate over the runs examined, the first failing run, the commits that landed between the last success and it, and a ranked list of likely causes with the evidence for each.
**Rules & Guidelines:**
* This prompt is read-only. Call only the `azure-devops-get-*` read tools named above; never create, update, comment on, approve, queue, abort or delete anything in Azure DevOps.
* The tools only return data the connected account can see; never infer data from projects outside that access.
* Say plainly that build logs are not available through these tools; do not guess at error messages.
* Distinguish a flaky pipeline (alternating results) from a broken one (consecutive failures).
**Validation:**
* If the pipeline has no runs, report that and stop.
* If every recent run succeeded, say it is healthy.
Who it's for
One answer, three teams that use it
DevOps engineers
Find what broke the pipeline
Start from the commits between the last pass and the first failure instead of rerunning.
What changed since the Fabrikam API CI pipeline last passed?
Developers
Check whether your change broke it
See the ranked commits since the last success, so you know if yours is a suspect.
Which commits landed between the last green and first red run of the Northwind Portal build?
Build engineers
Stop wasting reruns
A ranked list of likely causes tells you where to look before burning more build minutes.
Diagnose why the Contoso Services nightly pipeline started failing.
How it works
What PopdockAI does when you ask
You name a pipeline and your AI assistant narrows the failure down to the changes since it last passed. Nothing is changed or rerun.
01
Ask
You name the pipeline.
02
Read
It reads recent runs to find the last success and the first failure.
03
Compare
It lists the commits between them.
04
Report
You get ranked likely causes and a note that build logs are not available.
What PopdockAI provides
The tools behind the answer
Ready made tools for Azure DevOps and one secure connection to your AI tool. No code, no exports.
azure-devops-get-build-definition
azure-devops-get-pipeline
azure-devops-get-build
azure-devops-get-pipeline-run
azure-devops-get-commit
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
A short list of suspect commits
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
