Skip to content
Snippets Groups Projects
Unverified Commit 98d2f182 authored by Balasankar C's avatar Balasankar C
Browse files

Make Build::Info.gitlab_rails_repo return new URLs

parent b08096fe
Branches andrey-remove-group-caching
No related tags found
No related merge requests found
Loading
Loading
@@ -96,16 +96,14 @@ module Build
# For normal builds, QA build happens from the gitlab repositories in dev.
# For triggered builds, they are not available and their gitlab.com mirrors
# have to be used.
# CE repo - In com it is gitlab-foss, in dev it is gitlabhq
# EE repo - In com it is gitlab, in dev it is gitlab-ee
 
if Gitlab::Util.get_env('ALTERNATIVE_SOURCES').to_s == "true"
domain = "https://gitlab.com/gitlab-org"
project = package
project = package == "gitlab-ce" ? "gitlab-foss" : "gitlab"
else
domain = "git@dev.gitlab.org:gitlab"
# GitLab CE repo in dev.gitlab.org is named gitlabhq. So we need to
# identify gitlabhq from gitlab-ce. Fortunately gitlab-ee does not have
# this problem.
project = package == "gitlab-ce" ? "gitlabhq" : "gitlab-ee"
end
 
Loading
Loading
Loading
Loading
@@ -158,7 +158,7 @@ describe Build::Info do
end
it 'returns public mirror for GitLab EE' do
allow(Build::Info).to receive(:package).and_return("gitlab-ee")
expect(described_class.gitlab_rails_repo).to eq("https://gitlab.com/gitlab-org/gitlab-ee.git")
expect(described_class.gitlab_rails_repo).to eq("https://gitlab.com/gitlab-org/gitlab.git")
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment