Get Pipeline Info
get_pipeline_infoRetrieve what actually ran in a Jenkins Pipeline build, including Jenkinsfile source, Git checkouts, Shared Library versions, replay/restart data, slowest steps, and provisioned config files.
Instructions
What actually ran in a Pipeline build: where the Jenkinsfile came from, the git checkouts (repo, branch, commit), the Shared Library versions that were loaded (with a hint when a library branch does not match a VERSION parameter, e.g. rel-2.3 vs REL_VERSION=2.4), replay / restart-from-stage, and the slowest steps, and the Config File Provider files it provisioned. show_script=True adds the executed script (needs the Run/Replay permission).
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_pipeline_info"
}
}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. | |
| show_script | No | Also return the Jenkinsfile that actually ran (from the replay page) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||