Skip to content

Deprecation: Important notice on the planned removal of the CI_PRE_CLONE_SCRIPT variable for GitLab SaaS CI

For guidance on the overall deprecations, removals and breaking changes workflow, please visit Breaking changes, deprecations, and removing features

Deprecation Summary

The pre_clone_script configuration option on GitLab SaaS Runners is deprecated as of 15.9, with removal in 15.11. The pre_clone_script configuration enables you to run commands in your CI/CD job prior to the runner executing git init and get fetch. More details on how this feature works is covered in the documentation.

Alternative Solution

  • The replacement for CI_PRE_CLONE_SCRIPT is the new pre_get_sources_script feature which is now fully enabled on GitLab SaaS.

Example of hooks:pre_get_sources_script:

job1:
  hooks:
    pre_get_sources_script:
      - echo 'hello job1 pre_get_sources_script'
  script: echo 'hello job1 script'

Breaking Change

YES

Affected Topology

GitLab SaaS

Affected Tier

  • Free
  • Premium
  • Ultimate

Checklists

Labels

  • This issue is labeled deprecation, and with the relevant ~devops::, ~group::, and ~Category: labels.
  • This issue is labeled breaking change if the removal of the deprecated item will be a breaking change.

Timeline

Please add links to the relevant merge requests.

  • As soon as possible, but no later than the third milestone preceding the major release (for example, given the following release schedule: 14.8, 14.9, 14.10, 15.014.8 is the third milestone preceding the major release):
  • On or before the major milestone: A removal entry has been created so the removal will appear on the removals by milestones page and be announced in the release post.
  • On the major milestone:

Mentions

  • Your stage's stable counterparts have been @mentioned on this issue. For example, Customer Support, Customer Success (Technical Account Manager), Product Marketing Manager.
    • To see who the stable counterparts are for a product team visit product categories
      • If there is no stable counterpart listed for Sales/CS please mention @timtams
      • If there is no stable counterpart listed for Support please mention @gitlab-com/support/managers
      • If there is no stable counterpart listed for Marketing please mention @cfoster3
  • Your GPM has been @mentioned so that they are aware of planned deprecations. The goal is to have reviews happen at least two releases before the final removal of the feature or introduction of a breaking change.

Deprecation Milestone

15.9

Planned Removal Milestone

15.11

Links

Edited by Darren Eastman