Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
e4ed981f
Commit
e4ed981f
authored
Oct 04, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Ci::Stage status transition event consistent with Ci::Pipeline
parent
e84230eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/ci/stage.rb
app/models/ci/stage.rb
+2
-2
No files found.
app/models/ci/stage.rb
View file @
e4ed981f
...
@@ -66,7 +66,7 @@ module Ci
...
@@ -66,7 +66,7 @@ module Ci
transition
any
-
[
:manual
]
=>
:manual
transition
any
-
[
:manual
]
=>
:manual
end
end
event
:
schedule
do
event
:
delay
do
transition
any
-
[
:scheduled
]
=>
:scheduled
transition
any
-
[
:scheduled
]
=>
:scheduled
end
end
end
end
...
@@ -81,7 +81,7 @@ module Ci
...
@@ -81,7 +81,7 @@ module Ci
when
'failed'
then
drop
when
'failed'
then
drop
when
'canceled'
then
cancel
when
'canceled'
then
cancel
when
'manual'
then
block
when
'manual'
then
block
when
'scheduled'
then
schedule
when
'scheduled'
then
delay
when
'skipped'
,
nil
then
skip
when
'skipped'
,
nil
then
skip
else
else
raise
HasStatus
::
UnknownStatusError
,
raise
HasStatus
::
UnknownStatusError
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment