jenkins_build
Trigger a Jenkins build for any job, including parameterized builds by passing parameters as a JSON string to specify branch, deploy flags, and other inputs for the selected Jenkins session.
Instructions
Trigger a build for a Jenkins job.
For parameterized builds, pass parameters as JSON string.
Args: job_name: Full job name parameters: Build parameters as JSON string, e.g. '{"BRANCH": "main", "DEPLOY": "true"}' (empty for non-parameterized jobs) session_name: Jenkins session to use
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_name": "<job_name>"
},
"name": "jenkins_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | Yes | ||
| parameters | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |