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.
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 |