Validate existing CI/CD configuration
Validates the .gitlab-ci.yml configuration for a specified project.
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
The ID or URL-encoded path of the project
Query parameters
Deprecated: Use content_ref instead
The CI/CD configuration content is taken from this commit SHA, branch or tag. Defaults to the HEAD of the project's default branch
Run pipeline creation simulation, or only do static check. This is false by default
If the list of jobs that would exist in a static check or pipeline simulation should be included in the response. This is false by default
Deprecated: Use dry_run_ref instead
Branch or tag used as context when executing a dry run. Defaults to the default branch of the project. Only used when dry_run is true
Response
Validate existing CI/CD configuration
Example response
{
"errors": [
"variables config should be a hash of key value pairs"
],
"warnings": [
"jobs:job may allow multiple pipelines ..."
],
"merged_yaml": "---\\n:another_test:\\n :stage: test\\n\n :script: echo 2\\n:test:\\n :stage: test\\n :script: echo 1\\n",
"includes": [
{
"blob": "https://gitlab.com/root/example-project/-/blob/..."
}
],
"jobs": [
{
"name": "test",
"script": [
"ls"
]
}
]
}Changes
No recorded changes to this operation across all 5 revisions of this API.