GitLab CI: Found errors in your .gitlab-ci.yml: jobs:build config contains unknown keys: scripts
GitLab rejected the pipeline configuration, so no pipeline was created — the message names the job and the problem.
Found errors in your .gitlab-ci.ymlconfig contains unknown keysjobs:build config should contain either a script, trigger or extends keywordchosen stage does not existyaml invalid GitLab CI Meaning
The CI Lint tool (CI/CD → Editor → Validate, or Pipelines → CI lint) shows the exact error. Typical causes are unknown keys (scripts for script), a missing script, undefined stages or needs, wrong extends/include references, and YAML indentation.
Common causes
- Misspelled key (
scripts,stage:typo) - Job uses a stage that is not listed in
stages: needs:orextends:pointing to a job that does not existinclude:file path/project/ref wrong or not accessible- YAML indentation or quoting error
⚡ Quick fix
- Open CI/CD → Editor and press Validate to see the full error
- Compare stage names with the
stages:list - Check
include:paths and project permissions
Detailed fix by platform
GitLab CI
- Lint via API:
curl --header "PRIVATE-TOKEN: $TOKEN" "https://gitlab.com/api/v4/projects/$ID/ci/lint"
Code examples
Minimal valid job
stages: [build, test]
build:
stage: build
script:
- make buildHow to diagnose
- Message — Which job and key does GitLab name?
- Lint — Does CI Lint show more?
- Includes — All include paths reachable?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Cannot connect to the Docker daemon (GitLab) GitLab CI: Cannot connect to the Docker daemon at tcp://docker:2375. Is the docker daemon running?
- compose validation docker compose: services.x Additional property y is not allowed / yaml: line N: mapping values are not allowed
- Config compilation failed CircleCI: Error calling workflow: 'build'. Cannot find a definition for job named test / Config does not conform to schema
Most viewed in CI/CD
- The process '/usr/bin/git' failed with exit code 128 GitHub Actions: Error: The process '/usr/bin/git' failed with exit code 128
- This job is stuck because you don't have any active runners GitLab CI: This job is stuck because you don't have any active runners online or available with any of these tags assigned to them
- Resource not accessible by integration GitHub Actions: Error: Resource not accessible by integration (403)
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 25 Oct 2026