Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-23 16:09:20 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-08-24 13:22:01 +0300
commit5ced2d8d7d9107f031894c5b16908db8bf6b913f (patch)
treed63c9b2a073fa7f4af4bb4d9347c69e5be323994 /lib/gitlab/ci/config
parentd546f7d36e6703bda430e2f50fe4e87a07ab48f8 (diff)
Rename CI/CD job triggering policy class to Policy
Diffstat (limited to 'lib/gitlab/ci/config')
-rw-r--r--lib/gitlab/ci/config/entry/job.rb4
-rw-r--r--lib/gitlab/ci/config/entry/policy.rb (renamed from lib/gitlab/ci/config/entry/trigger.rb)2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/ci/config/entry/job.rb b/lib/gitlab/ci/config/entry/job.rb
index 32f5c6ab142..91aac6df4b1 100644
--- a/lib/gitlab/ci/config/entry/job.rb
+++ b/lib/gitlab/ci/config/entry/job.rb
@@ -59,10 +59,10 @@ module Gitlab
entry :services, Entry::Services,
description: 'Services that will be used to execute this job.'
- entry :only, Entry::Trigger,
+ entry :only, Entry::Policy,
description: 'Refs policy this job will be executed for.'
- entry :except, Entry::Trigger,
+ entry :except, Entry::Policy,
description: 'Refs policy this job will be executed for.'
entry :variables, Entry::Variables,
diff --git a/lib/gitlab/ci/config/entry/trigger.rb b/lib/gitlab/ci/config/entry/policy.rb
index 16b234e6c59..a08ab8a9d14 100644
--- a/lib/gitlab/ci/config/entry/trigger.rb
+++ b/lib/gitlab/ci/config/entry/policy.rb
@@ -5,7 +5,7 @@ module Gitlab
##
# Entry that represents a trigger policy for the job.
#
- class Trigger < Node
+ class Policy < Node
include Validatable
validations do