create_pipeline_job
Create a Jenkins Pipeline job from an inline Jenkinsfile to automate builds and reference credential IDs in code.
Instructions
Create a Pipeline job from an inline Jenkinsfile.
The script runs in the Groovy sandbox. Requires workflow-job and workflow-cps, both included in the workflow-aggregator plugin. Reference Jenkins credential IDs; do not put plaintext secrets in the Jenkinsfile. The generated XML 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>",
"jenkinsfile": "<jenkinsfile>"
},
"name": "create_pipeline_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | Yes | ||
| description | No | Managed by Jenkins MCP | |
| jenkinsfile | Yes |