summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config/node/global.rb
blob: b5d177c52852525566a19824897dbb4ba86470b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module Gitlab
  module Ci
    class Config
      module Node
        ##
        # This class represents a global entry - root node for entire
        # GitLab CI Configuration file.
        #
        class Global < Entry
          include Configurable

          node :before_script, Script,
            description: 'Script that will be executed before each job.'

          node :image, Image,
            description: 'Docker image that will be used to execute jobs.'

          node :services, Services,
            description: 'Docker images that will be linked to the container.'

          node :after_script, Script,
            description: 'Script that will be executed after each job.'

          node :variables, Variables,
            description: 'Environment variables that will be used.'
        end
      end
    end
  end
end