You need to sign in or sign up before continuing.
pre_clone_script should be executed even with GIT_STRATEGY_NONE
Description
pre_clone_script is tied to GIT_STRATEGY != none
and it limits it's usefulness.
Proposal
I understand that main motivation for pre_clone_script
was to adjust git clone configuration ( like here https://gitlab.com/gitlab-com/infrastructure/issues/846) , but it is not the only use-case. I read pre_clone_script
as a place where we can hook up any logic before git cloning phase, whether that cloning phase is going to happen or not should not berelevant. In other words pre_clone_script
is more about ordering, than about cloning itself.
We use it to clone helper projects which are then available for every single job, we cannot do it in pre_build_script
because that script is executed inside build image and that one has no guarantee to have git installed