diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-09-21 09:24:19 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-02 18:02:11 +0300 |
commit | 1a4f497e6093c8d1005986467c8b752cc61c6629 (patch) | |
tree | 4ad50ce8528809d31af31ea981328a3a86924b5f /app/models/ci/stage.rb | |
parent | a7c767f16446f71f6e35a5aa3d2fdc73037fcdf5 (diff) |
Update pipelines and stages status as well
Diffstat (limited to 'app/models/ci/stage.rb')
-rw-r--r-- | app/models/ci/stage.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb index 511ded55dc3..811261a252e 100644 --- a/app/models/ci/stage.rb +++ b/app/models/ci/stage.rb @@ -65,6 +65,10 @@ module Ci event :block do transition any - [:manual] => :manual end + + event :schedule do + transition any - [:scheduled] => :scheduled + end end def update_status @@ -77,6 +81,7 @@ module Ci when 'failed' then drop when 'canceled' then cancel when 'manual' then block + when 'scheduled' then schedule when 'skipped', nil then skip else raise HasStatus::UnknownStatusError, |