diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-04-11 16:09:34 +0200 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-04-11 16:09:34 +0200 |
commit | b683f5db89f1c3c6c815ffffd08b4422c2d0a01c (patch) | |
tree | 8711b79dd73bddfc9f35360cfce81974d1501519 /lib/gitlab/ci/config/entry/global.rb | |
parent | 41bc39dac52908e06f397045b8074d33b19bf03e (diff) | |
download | gitlab-ce-b683f5db89f1c3c6c815ffffd08b4422c2d0a01c.tar.gz |
Add global only/exceptadd-global-only-and-except
Diffstat (limited to 'lib/gitlab/ci/config/entry/global.rb')
-rw-r--r-- | lib/gitlab/ci/config/entry/global.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/gitlab/ci/config/entry/global.rb b/lib/gitlab/ci/config/entry/global.rb index dbad77e59c4..c85f68c0911 100644 --- a/lib/gitlab/ci/config/entry/global.rb +++ b/lib/gitlab/ci/config/entry/global.rb @@ -43,8 +43,15 @@ module Gitlab description: 'Configure caching between build jobs.', inherit: true + entry :only, Entry::Policy, + description: 'Refs policy this job will be executed for.', + default: Entry::Policy::DEFAULT_GLOBAL_ONLY + + entry :except, Entry::Policy, + description: 'Refs policy this job will be executed for.' + helpers :before_script, :image, :services, :after_script, - :variables, :stages, :types, :cache + :variables, :stages, :types, :cache, :only, :except def compose!(deps = nil) super(self) do |