debian-mirror-gitlab/lib/gitlab/ci/config/entry/timeout.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
463 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
class Config
module Entry
##
2022-11-25 23:54:43 +05:30
# Entry that represents the interruptible value.
2019-12-26 22:10:19 +05:30
#
2020-01-01 13:55:28 +05:30
class Timeout < ::Gitlab::Config::Entry::Node
2019-12-26 22:10:19 +05:30
include ::Gitlab::Config::Entry::Validatable
validations do
2020-01-01 13:55:28 +05:30
validates :config, duration: { limit: ChronicDuration.output(Project::MAX_BUILD_TIMEOUT) }
2019-12-26 22:10:19 +05:30
end
end
end
end
end
end