hooks

Run scripts at specific phases of the job lifecycle.

Supported: pre_get_sources_script

Examples

Run script before source checkout

job:
  hooks:
    pre_get_sources_script:
      - echo "before cloning"
  script: echo "job"