summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-10-04 19:26:15 +0900
committerShinya Maeda <shinya@gitlab.com>2018-10-04 19:39:30 +0900
commite4ed981f3304dba0eb54bb08efaea6222815f9d0 (patch)
treef7985dcef4cf77e773168763703495b3375fe317 /app
parente84230ebb6db5ff9e5990e945aa1e1aebf4e9fa9 (diff)
downloadgitlab-ce-e4ed981f3304dba0eb54bb08efaea6222815f9d0.tar.gz
Make Ci::Stage status transition event consistent with Ci::Pipeline
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/stage.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb
index 811261a252e..58f3fe2460a 100644
--- a/app/models/ci/stage.rb
+++ b/app/models/ci/stage.rb
@@ -66,7 +66,7 @@ module Ci
transition any - [:manual] => :manual
end
- event :schedule do
+ event :delay do
transition any - [:scheduled] => :scheduled
end
end
@@ -81,7 +81,7 @@ module Ci
when 'failed' then drop
when 'canceled' then cancel
when 'manual' then block
- when 'scheduled' then schedule
+ when 'scheduled' then delay
when 'skipped', nil then skip
else
raise HasStatus::UnknownStatusError,