create_pipeline
Create a new GitLab CI/CD pipeline for a specific project and branch, with optional environment variables to automate software builds and deployments.
Instructions
Create a new pipeline
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_id | Yes | Project ID or path | |
ref | Yes | Branch or tag name | |
variables | No | Pipeline variables |
Input Schema (JSON Schema)
{
"properties": {
"project_id": {
"description": "Project ID or path",
"type": "string"
},
"ref": {
"description": "Branch or tag name",
"type": "string"
},
"variables": {
"description": "Pipeline variables",
"items": {
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
},
"variable_type": {
"default": "env_var",
"enum": [
"env_var",
"file"
],
"type": "string"
}
},
"required": [
"key",
"value"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"project_id",
"ref"
],
"type": "object"
}