summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config/node/hidden_job.rb
blob: 073044b66f89c66ae593d1042b22214b6d901bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Gitlab
  module Ci
    class Config
      module Node
        ##
        # Entry that represents a hidden CI/CD job.
        #
        class HiddenJob < Entry
          include Validatable

          validations do
            validates :config, type: Hash
            validates :config, presence: true
          end

          def relevant?
            false
          end
        end
      end
    end
  end
end