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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-01 16:38:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-01 16:38:24 +0300
commit0396082c12f518f48e136968dbf0b4e5f774641c (patch)
tree9ee22b3f2d65483c316d30397b7e065d4dec5fec /app/models
parentcb7e80d1211dae947e40290a834cbe29ee36364e (diff)
Add latest changes from gitlab-org/gitlab@15-2-stable-ee
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 78b55680b5e..95c6da4a7af 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -1314,6 +1314,8 @@ module Ci
raise ArgumentError, 'pipeline not fully loaded'
end
+ return 0 unless created_at
+
(Time.current - created_at).ceil / 60
end