build_item
Trigger a Jenkins build for a specified item. Use buildWithParameters when the item requires parameters, and include the data payload. Returns the queue item number.
Instructions
Build an item in Jenkins
Args: fullname: The fullname of the item data: The parameters to trigger the build with. Required if build_type is 'buildWithParameters'. build_type: If your item is configured with parameters, you must use 'buildWithParameters' as build_type.
Returns: The queue item number of the item.
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": {
"fullname": "<fullname>",
"build_type": "<build_type>"
},
"name": "build_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| fullname | Yes | ||
| build_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |