Create project CI/CD variable
create_project_ci_variableCreate a CI/CD variable for a GitLab project without exposing its value in the response. Specify the project, key, and value, with options for masking, protection, environment scope, variable type, and expansion behavior.
Instructions
Create a project CI/CD variable without returning its value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| raw | No | Whether the value is literal. Set false to enable variable expansion. | |
| value | Yes | ||
| masked | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| protected | No | ||
| description | No | ||
| variable_type | No | ||
| environment_scope | No | ||
| masked_and_hidden | No | Create a masked variable whose value is also hidden in GitLab. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |