create_multibranch_pipeline
Create a Jenkins multibranch Pipeline that automatically discovers and builds branches from a Git repository. Use it to set up branch-based CI/CD workflows.
Instructions
Create a multibranch Pipeline that discovers branches from a Git repository.
Requires the workflow-multibranch, branch-api and git plugins. Run scan_multibranch_pipeline afterwards to populate branches immediately. repository_url must not contain embedded credentials, a query string, or a fragment. credentials_id names a credential already stored in Jenkins; never pass a token, password or private key in that field. script_path must be a canonical repository-relative path. 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>",
"repository_url": "<repository_url>"
},
"name": "create_multibranch_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | Yes | ||
| description | No | Managed by Jenkins MCP | |
| script_path | No | Jenkinsfile | |
| credentials_id | No | ||
| repository_url | Yes |