summaryrefslogtreecommitdiff
path: root/qa/qa/specs/helpers/context_selector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/helpers/context_selector.rb')
-rw-r--r--qa/qa/specs/helpers/context_selector.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/specs/helpers/context_selector.rb b/qa/qa/specs/helpers/context_selector.rb
index caa5ace430f..dfb00cb807b 100644
--- a/qa/qa/specs/helpers/context_selector.rb
+++ b/qa/qa/specs/helpers/context_selector.rb
@@ -27,7 +27,7 @@ module QA
uri = URI(Runtime::Scenario.gitlab_address)
options.each do |option|
- opts[:domain] = 'gitlab' if option == :production
+ opts[:domain] = production_domain if option == :production
next unless option.is_a?(Hash)
@@ -75,6 +75,10 @@ module QA
def pipeline_from_project_name(project_name)
project_name.to_s.start_with?('gitlab-qa') ? Runtime::Env.default_branch : project_name
end
+
+ def production_domain
+ GitlabEdition.jh? ? 'jihulab' : 'gitlab'
+ end
end
end
end