Commit 09663329 authored by Andrejs Cunskis's avatar Andrejs Cunskis

Add preprod environment detection

parent 69086674
......@@ -116,11 +116,11 @@ module QA
@merge_request ||= (!!env('CI_MERGE_REQUEST_IID') || !!env('TOP_UPSTREAM_MERGE_REQUEST_IID')).to_s
end
# Test run type from staging, canary or production env
# Test run type from staging, canary, preprod or production env
#
# @return [String>, nil]
# @return [String, nil]
def run_type
return unless %w[staging canary production].include?(project_name)
return unless %w[staging canary preprod production].include?(project_name)
@run_type ||= begin
test_subset = if env('NO_ADMIN') == 'true'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment