Get Env Log
get_env_logRetrieve a build's masked env.log from Jenkins and filter its lines by regex to inspect relevant environment variables.
Instructions
The env.log artifact (environment variables dumped by the pipeline) of a build, with
secret-looking values masked. Optional regex pattern filters the lines (e.g. 'JAVA|MAVEN|NODE').
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_env_log"
}
}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. | |
| pattern | No | ||
| instance | No | Jenkins instance name from list_instances. Empty = default instance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |