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
|