Get Test Failures
get_test_failuresRetrieves failed JUnit test cases from a Jenkins build, including class, test, error, shortened stack trace, and failure age, so you can diagnose test failures without parsing console logs.
Instructions
Failed test cases from the JUnit test report (not the log): class, test, error message, shortened stack, and 'age' = number of consecutive builds this test has been failing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job": "<job>"
},
"name": "get_test_failures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | Job full name like 'cd/master/my-app' (folders separated by '/'), or a Jenkins job/build URL (instance is then detected from the URL). | |
| build | No | Build number or permalink: lastBuild, lastFailedBuild, lastSuccessfulBuild, lastCompletedBuild, lastUnsuccessfulBuild. Empty = build from the URL, else lastBuild. | |
| instance | No | Jenkins instance name from list_instances. Empty = default instance. | |
| max_cases | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||