# Features The keywords below are every keyword documented in the [GitLab CI/CD YAML reference](https://gitlab.com/gitlab-org/gitlab/-/raw/master/doc/ci/yaml/_index.md) (`doc/ci/yaml/_index.md` on `master`), in that document's groups. A heading for a sub-keyword is its own row. `variables` is documented both as a default and as a job keyword, and `variables:expand` applies to both, so those rows appear twice. Status is what `internal/pipeline/yaml.go` accepts today. ## Global keywords | Keyword | Status | E2E | Notes | |---|---|---|---| | `default` | 🟡 partial | default | supports the ten job keywords below; a job value replaces its default value; `inherit:default` can turn inheritance off | | `default:image` | ✅ supported | default | same support as job `image` | | `default:services` | ✅ supported | default | same support as job `services` | | `default:before_script` | ✅ supported | default | replaced by job `before_script`, not merged | | `default:after_script` | ✅ supported | default | replaced by job `after_script`, not merged | | `default:cache` | ✅ supported | default | replaced by job `cache`, not merged | | `default:timeout` | ✅ supported | timeout | Shuttle extension: inherited unless the job defines `timeout`; current GitLab documentation limits `timeout` to jobs | | `default:retry` | ✅ supported | retry | same support as job `retry` | | `default:hooks` | ✅ supported | hooks | same support as job `hooks`; replaced by job `hooks`, not merged | | `default:tags` | ✅ supported | tags | same support as job `tags`; replaced by job `tags`, not merged | | `default:interruptible` | 🟡 partial | tags | accepted, no effect; Shuttle has no auto-cancel | | `include` | 🟡 partial | include-local | only `include:local`; other include forms are rejected | | `include:component` | ⬜ not implemented | | needs the CI component catalog | | `include:local` | ✅ supported | include-local | same commit via the anonymous shallow fetch; `*` and `**` follow GitLab `search_files_by_wildcard_path` (`**/*` also matches that directory itself); nested includes up to 150; a missing, empty, or non-YAML file fails the pipeline. Paths are literal (no CI variable expansion). Wildcard matches are sorted by path | | `include:project` | ⬜ not implemented | | needs another project's repository and ref | | `include:remote` | ⬜ not implemented | | needs a network fetch | | `include:template` | ⬜ not implemented | | needs GitLab's template library | | `include:inputs` | ⬜ not implemented | | needs `spec:inputs` | | `include:rules` | ⬜ not implemented | | include-time rules are not implemented; a present `rules` key fails the pipeline rather than being ignored | | `include:integrity` | ⬜ not implemented | | only applies to `include:remote` | | `include:cache` | ⬜ not implemented | | only applies to `include:remote` | | `stages` | ✅ supported | stages | defaults to `.pre`, `build`, `test`, `deploy`, `.post`; stages run in order | | `workflow` | 🟡 partial | workflow-rules | supports `rules`; `name` and `auto_cancel` are not implemented | | `workflow:auto_cancel:on_new_commit` | ⬜ not implemented | | | | `workflow:auto_cancel:on_job_failure` | ⬜ not implemented | | | | `workflow:name` | ⬜ not implemented | | | | `workflow:rules` | ✅ supported | workflow-rules | first match decides whether the pipeline is created; a dropped pipeline has no job records | | `workflow:rules:variables` | ✅ supported | workflow-rules | matching values override top-level variables and are available to jobs | | `workflow:rules:auto_cancel` | ⬜ not implemented | | | | `variables` | ✅ supported | predefined-variables | string values and objects with `value` and `description`; job values override global values; predefined variables are also exercised here | | `variables:description` | ✅ supported | variables | accepted as documentation; not sent to the runner | | `variables:value` | ✅ supported | variables | | | `variables:options` | ⬜ not implemented | | rejected rather than silently ignored | | `variables:expand` | ✅ supported | variables-expand | true or false; sent as runner raw flag so variables are not expanded when false | ## Header keywords | Keyword | Status | E2E | Notes | |---|---|---|---| | `spec` | ⬜ not implemented | | | | `spec:inputs` | ⬜ not implemented | | | | `spec:include` | ⬜ not implemented | | | | `spec:component` | ⬜ not implemented | | | | `spec:description` | ⬜ not implemented | | | ## Job keywords | Keyword | Status | E2E | Notes | |---|---|---|---| | `after_script` | ✅ supported | before-after-script | job-level commands run as a separate `always` step with failure allowed | | `allow_failure` | ✅ supported | allow-failure | boolean; an allowed failed job remains failed but does not block later stages | | `allow_failure:exit_codes` | ✅ supported | allow-failure | a number or list; only matching exit codes are allowed failures | | `artifacts` | ✅ supported | artifacts | archive artifacts are uploaded as zip files to the owner's PDS | | `artifacts:paths` | ✅ supported | artifacts | passed to gitlab-runner | | `artifacts:exclude` | ✅ supported | artifacts | passed to gitlab-runner | | `artifacts:expire_in` | ✅ supported | artifacts | stored as `expiresAt`; expired records are deleted | | `artifacts:expose_as` | ⬜ not implemented | | | | `artifacts:name` | ✅ supported | artifacts | | | `artifacts:public` | ⬜ not implemented | | | | `artifacts:access` | ⬜ not implemented | | | | `artifacts:reports` | 🟡 partial | reports | dotenv variables are passed to later jobs that depend on the job; other report types are stored and not interpreted | | `artifacts:untracked` | ✅ supported | artifacts | | | `artifacts:when` | ✅ supported | artifacts | `on_success`, `on_failure`, or `always` | | `before_script` | ✅ supported | before-after-script | job-level commands are prepended to the script step | | `cache` | 🟡 partial | cache | object or list passed through to the runner; Shuttle provides no cache storage or distributed cache | | `cache:paths` | ✅ supported | cache | | | `cache:key` | 🟡 partial | cache | string keys only; `files` and `prefix` need server-side computation and are not implemented | | `cache:untracked` | ✅ supported | cache | | | `cache:unprotect` | ⬜ not implemented | | | | `cache:when` | ✅ supported | cache | | | `cache:policy` | ✅ supported | cache | | | `cache:fallback_keys` | ✅ supported | cache | | | `coverage` | ✅ supported | coverage | `/.../` RE2 regex; the last match in the trace is used, captures follow GitLab extraction, and the first decimal number in the selected fragment is recorded as a normalized decimal string because ATProto records do not support floats | | `dast_configuration` | ⬜ not implemented | | | | `dependencies` | ✅ supported | artifacts | a list selects earlier-stage artifact jobs; `[]` downloads none | | `environment` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `environment:name` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `environment:url` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `environment:on_stop` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `environment:action` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `environment:auto_stop_in` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `environment:kubernetes` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `environment:deployment_tier` | 🟡 partial | tags | accepted, no effect; Shuttle has no deployments | | `extends` | ✅ supported | extends | string or list, hidden or visible jobs, eleven levels; hashes deep-merge and arrays are replaced; cycles and unknown or non-hash targets fail the pipeline. `!reference` is resolved after `extends`, including inside `script`. `script`, `before_script`, and `after_script` nested arrays are flattened up to 10 levels | | `hooks` | ✅ supported | hooks | commands run at execution stages; default:hooks provides defaults, replaced by job value | | `hooks:pre_get_sources_script` | ✅ supported | hooks | string or list of commands run before the runner fetches sources | | `identity` | ⬜ not implemented | | | | `id_tokens` | ⬜ not implemented | | | | `image` | 🟡 partial | image-object | string or object with `name`, `entrypoint`, `pull_policy`, and `docker`; `kubernetes` is not implemented | | `image:name` | ✅ supported | image-object | | | `image:entrypoint` | ✅ supported | image-object | | | `image:docker` | ✅ supported | docker-options | `platform` and `user` | | `image:kubernetes` | ⬜ not implemented | | | | `image:pull_policy` | ✅ supported | image-object | string or list of strings | | `inputs` | ⬜ not implemented | | | | `inputs:default` | ⬜ not implemented | | | | `inputs:type` | ⬜ not implemented | | | | `inputs:description` | ⬜ not implemented | | | | `inputs:options` | ⬜ not implemented | | | | `inputs:regex` | ⬜ not implemented | | | | `inherit` | ✅ supported | extends | controls `default` and `variables` only; omitted means inherit everything | | `inherit:default` | ✅ supported | extends | true, false, or a list of the supported default keys | | `inherit:variables` | ✅ supported | extends | true, false, or a list of top-level variable names. Workflow and predefined variables are not filtered | | `interruptible` | 🟡 partial | tags | accepted, no effect; Shuttle has no auto-cancel | | `needs` | ✅ supported | needs | job-name and object lists create a same-pipeline DAG; `needs: []` starts immediately | | `needs:artifacts` | ✅ supported | artifacts | defaults to true; false suppresses that needed job's artifact | | `needs:project` | ⬜ not implemented | | | | `needs:pipeline:job` | ⬜ not implemented | | | | `needs:optional` | ✅ supported | needs | missing optional jobs are dropped during pipeline creation | | `needs:pipeline` | ⬜ not implemented | | | | `needs:parallel:matrix` | ⬜ not implemented | | selector edges do not fit the current name-only needs model cleanly; plain `needs` still waits for every matrix job | | `pages` | ⬜ not implemented | | | | `pages.publish` | ⬜ not implemented | | | | `pages.path_prefix` | ⬜ not implemented | | | | `pages.expire_in` | ⬜ not implemented | | | | `parallel` | ✅ supported | parallel | integers 2..200; expands to GitLab-compatible names with `CI_NODE_INDEX` and `CI_NODE_TOTAL`; a plain `needs` edge waits for every copy | | `parallel:matrix` | ✅ supported | parallel-matrix | up to 200 permutations; GitLab-compatible Cartesian order and names; matrix variables and `CI_NODE_INDEX`/`CI_NODE_TOTAL` are set | | `release` | ⬜ not implemented | | | | `release:tag_name` | ⬜ not implemented | | | | `release:tag_message` | ⬜ not implemented | | | | `release:name` | ⬜ not implemented | | | | `release:description` | ⬜ not implemented | | | | `release:ref` | ⬜ not implemented | | | | `release:milestones` | ⬜ not implemented | | | | `release:released_at` | ⬜ not implemented | | | | `release:assets:links` | ⬜ not implemented | | | | `resource_group` | ⬜ not implemented | | | | `retry` | ✅ supported | retry | integer 0..2 or an object with `max`; every attempt has a new job ID and trace record, and stage/needs ordering uses only the latest attempt | | `retry:when` | ✅ supported | retry | string or list of documented GitLab failure types; `always` is the default | | `retry:exit_codes` | ✅ supported | retry | number or non-empty list from 0 through 255; matches independently of `when` | | `rules` | ✅ supported | rules | evaluated in order when the pipeline is created; first match wins and no match omits the job | | `rules:if` | ✅ supported | rules | variables, strings, `null`, equality, RE2 regex matching, Boolean operators, and parentheses | | `rules:changes` | 🟡 partial | rules | paths and `changes:paths`; branch pushes compare the previous SHA, and new branches match; `compare_to` and `regexp` are not implemented | | `rules:exists` | 🟡 partial | rules | paths and `exists:paths` at the pushed SHA; cross-project/ref lookup and `regexp` are not implemented | | `rules:when` | 🟡 partial | rules | supports `on_success`, `always`, and `never`; manual and delayed are not implemented | | `rules:allow_failure` | ✅ supported | rules | boolean on the matching rule overrides the job value | | `rules:needs` | ✅ supported | rules | the matching rule replaces job `needs`; missing non-optional jobs reject the pipeline | | `rules:variables` | ✅ supported | rules | matching values override job, workflow, and top-level YAML variables | | `rules:interruptible` | ⬜ not implemented | | | | `run` | ⬜ not implemented | | | | `script` | ✅ supported | basic | a string or a list of strings | | `secrets` | ⬜ not implemented | | | | `secrets:vault` | ⬜ not implemented | | | | `secrets:gcp_secret_manager` | ⬜ not implemented | | | | `secrets:gitlab_secrets_manager` | ⬜ not implemented | | | | `secrets:azure_key_vault` | ⬜ not implemented | | | | `secrets:file` | ⬜ not implemented | | | | `secrets:token` | ⬜ not implemented | | | | `services` | 🟡 partial | services | strings or objects with `alias`, `command`, `entrypoint`, `variables`, `pull_policy`, and `docker`; `kubernetes` is not implemented | | `services:name` | ✅ supported | services | | | `services:alias` | ✅ supported | services | | | `services:docker` | ✅ supported | docker-options | `platform` and `user` | | `services:kubernetes` | ⬜ not implemented | | | | `services:entrypoint` | ✅ supported | services | | | `services:command` | ✅ supported | services | | | `services:variables` | ✅ supported | services | values use the same string or object form as job variables | | `services:pull_policy` | ✅ supported | services | string or list of strings; the runner must allow the policy (`allowed_pull_policies`) | | `stage` | ✅ supported | stages-failure | defaults to `test`; an undeclared stage rejects the pipeline and a failed stage skips later stages | | `stage: .pre` | ✅ supported | stages | implicit first stage | | `stage: .post` | ✅ supported | stages | implicit last stage | | `tags` | ✅ supported | tags | case-sensitive; a runner must have every tag; untagged jobs run only on runners with `run_untagged`; fewer than 50 tags; `$NAME` and `${NAME}` expand from the job variables | | `timeout` | ✅ supported | timeout | positive numeric seconds or GitLab-style numeric duration parts such as `10s`, `1h 30m`, and `90 minutes`; sent as runner and step timeouts and used by Shuttle's watchdog | | `trigger` | ⬜ not implemented | unsupported | | | `trigger:inputs` | ⬜ not implemented | | | | `trigger:include` | ⬜ not implemented | | | | `trigger:include:inputs` | ⬜ not implemented | | | | `trigger:project` | ⬜ not implemented | | | | `trigger:strategy` | ⬜ not implemented | | | | `trigger:forward` | ⬜ not implemented | | | | `when` | 🟡 partial | when | supports `on_success` (default), `on_failure`, `always`, and `never`; `manual` needs a trigger and `delayed` needs a clock | | `manual_confirmation` | ⬜ not implemented | | | | `start_in` | ⬜ not implemented | | | | `variables` | ✅ supported | variables | string values and objects with `value` and `description`; overrides global variables | | `variables:expand` | ✅ supported | variables-expand | true or false; sent as runner raw flag so variables are not expanded when false | A pipeline that uses a keyword that is not implemented does not start; the run fails and names the keyword. Top-level keys whose names start with `.` are hidden job templates and never run. `extends` and `!reference` can use them. They are not type-checked as jobs. `include:local`, `extends`, and `!reference` are resolved while the pipeline is created; the runner receives the merged jobs.