CI_REPOSITORY_URL is not reflecting runner-specific CLONE_URL
Summary
CI_REPOSITORY_URL as visible in the job is not reflecting runner-specific CLONE_URL option, making it unusable within job started by such runners
Steps to reproduce
- run gitlab runner with
--clone-url "http://zzz/"flag - print CI_REPOSITORY_URL
What is the current bug behavior?
CI_REPOSITORY_URL is NOT based on http://zzz/, therefore any attempt to use it is bound to fail, since any guaranteed way to contact Gitlab from that given runner is via URL specified in clone-url
What is the expected correct behavior?
CI_REPOSITORY_URL to start use value of runner's CLONE_URL , ie. https://gitlab-ci-token:token@zzzz/gitlab-examples/ci-debug-trace.git
Possible fixes
- transform CI_REPOSITORY_URL on a runner side