create_pipeline_run
Run CI/CD pipelines with specified branches, tags, multiple branches, repository branch/tag overrides, and environment variables; the system auto-fetches repository URLs from pipeline config.
Instructions
[Pipeline Management] Run a pipeline with flexible parameters.
β οΈ IMPORTANT: DO NOT provide 'params' parameter unless user explicitly provides a JSON string. Use simplified parameters instead!
π― Most Common Use Cases:
πΏ Run with specific branch: Use 'branch' parameter
User: 'Run pipeline with dev branch' β { branch: 'dev' }
User: 'η¨masterεζ―θΏθ‘ζ΅ζ°΄ηΊΏ' β { branch: 'master' }
System will automatically fetch repository URLs from pipeline config
π·οΈ Run with specific tag: Use 'tag' parameter
User: 'Run pipeline with v1.0 tag' β { tag: 'v1.0' }
User: 'η¨v2.0ζ ηΎθΏθ‘ζ΅ζ°΄ηΊΏ' β { tag: 'v2.0' }
System will automatically fetch repository URLs from pipeline config
π Run with multiple branches: Use 'branches' parameter
User: 'Run pipeline with main and dev branches' β { branches: ['main', 'dev'] }
ποΈ Run with specific repo branch/tag: Use 'repositories' parameter
{ repositories: [{ url: 'https://codeup.aliyun.com/org/repo.git', branch: 'feature-x' }] }
{ repositories: [{ url: 'https://codeup.aliyun.com/org/repo.git', tag: 'v1.0' }] }
π¦ Run with environment variables: Use 'environmentVariables' parameter
{ environmentVariables: { 'ENV': 'production', 'VERSION': '1.0.0' } }
π Parameter Guide:
πΏ branch: Single branch name (most common)
π·οΈ tag: Single tag name (for release versions)
π branches: Multiple branches for branch mode
ποΈ repositories: Specific branch/tag per repository
π¦ environmentVariables: Key-value pairs for pipeline variables
π comment: Add a note for this run
π§ params: [Advanced] ONLY use if user provides raw JSON string
β‘ Smart Behavior:
If only 'branch' or 'tag' is provided β automatically fetches repo URLs from pipeline and generates runningBranchs/runningTags
If 'branches' is provided β automatically enables branch mode
If 'params' is provided β all other parameters are ignored
β DO NOT:
Generate 'params' parameter yourself
Convert simplified parameters to 'params' JSON
The system will handle param generation automatically
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": {
"organizationId": "<organizationId>",
"pipelineId": "<pipelineId>"
},
"name": "create_pipeline_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | [Simple] Tag name to run the pipeline with. When user says 'run pipeline with XX tag', use this parameter. Will automatically fetch repo URLs from pipeline config. | |
| branch | No | [Simple] Branch name to run the pipeline with. When user says 'run pipeline with XX branch', use this parameter. This is the most common use case. | |
| params | No | [Advanced] Raw pipeline run parameters in JSON string format. If provided, this will override other parameters. Example: {"branchModeBranchs":["main"],"envs":{"key":"value"},"runningBranchs":{"https://codeup.aliyun.com/org/repo.git":"dev"}} | |
| comment | No | [Simple] Comment or note for this pipeline run | |
| branches | No | [Simple] Multiple branches for branch mode. Use when user wants to run pipeline in branch mode with specific branches. | |
| branchMode | No | [Simple] Enable branch mode to run pipeline with multiple branches simultaneously | |
| pipelineId | Yes | Pipeline ID to run | |
| description | No | [Optional] Natural language description of how to run the pipeline, the system will try to parse it automatically | |
| acrArtifacts | No | [Simple] ACR (Alibaba Cloud Container Registry) artifacts to use, key is image address, value is image tag | |
| repositories | No | [Simple] Specific branch or tag configurations for different repositories in the pipeline | |
| releaseBranch | No | [Simple] Specific release branch name | |
| organizationId | Yes | Organization ID, can be found in the basic information page of the organization admin console | |
| packagesArtifacts | No | [Simple] Package repository artifacts to use, key is artifact path, value is version | |
| pipelineArtifacts | No | [Simple] Pipeline artifacts to use, key is artifact ID, value is version | |
| createReleaseBranch | No | [Simple] Whether to create a new release branch | |
| environmentVariables | No | [Simple] Environment variables to pass to the pipeline, e.g., {"ENV":"production","VERSION":"1.0.0"} |