Always use the configured CI host for cloning projects.

What does this MR do?

Changes the host of the cloned URL to match the setting.

Why was this MR needed?

Developers are accessing our gitlab thru the company's VPN, using domain name A (set as gitlab_rails['gitlab_host']), and runners are accessing gitlab thru the Kubernetes internal network, using domain name B (configured in the runner's config.toml). A is not accessible from runners, and B is not accessible from the VPN.

Currently runners try to clone repos using A (the gitlab_host) - and fail. With this patch, they use B (the host from the runner's config.toml) instead.

Are there points in the code the reviewer needs to double check?


Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)

What are the relevant issue numbers?