Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/pipeline/seed/environment.rb')
-rw-r--r--lib/gitlab/ci/pipeline/seed/environment.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/ci/pipeline/seed/environment.rb b/lib/gitlab/ci/pipeline/seed/environment.rb
index 5dff0788ec9..c8795840e5f 100644
--- a/lib/gitlab/ci/pipeline/seed/environment.rb
+++ b/lib/gitlab/ci/pipeline/seed/environment.rb
@@ -13,7 +13,9 @@ module Gitlab
def to_resource
environments.safe_find_or_create_by(name: expanded_environment_name) do |environment|
+ # Initialize the attributes at creation
environment.auto_stop_in = auto_stop_in
+ environment.tier = deployment_tier
end
end
@@ -27,6 +29,10 @@ module Gitlab
job.environment_auto_stop_in
end
+ def deployment_tier
+ job.environment_deployment_tier
+ end
+
def expanded_environment_name
job.expanded_environment_name
end