create_job_from_xml
Create a Jenkins job from raw config.xml when full XML control is needed; fails if the job name already exists.
Instructions
Create a job from a raw config.xml.
Fails if the name already exists. Prefer create_pipeline_job or create_multibranch_pipeline unless you need full control of the XML. Do not place plaintext credentials in the XML; reference Jenkins-managed credential IDs. The encoded body must fit MCP_MAX_REQUEST_BYTES.
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>",
"config_xml": "<config_xml>"
},
"name": "create_job_from_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | Yes | ||
| config_xml | Yes |