Defaults

defaults

Defaults are not set by the project. Any user can set defaults from within the .gitlab-ci.yml file.

Example:

defaults:
  timeout: "1 day"
  script:
    - /bin/true

.core:defaults

Other defaults are set in the .core:defaults job which is inherited by all jobs.

When overriding the before_script in your job, you should reference the .core.defaults before_script functions to add them to the current script:

my-job:
  (...)
  before_script:
    - !reference [".core:defaults", before_script]
    - (...)

References