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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cba9eeb6
Commit
cba9eeb6
authored
Sep 30, 2019
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix legacy_stages
parent
bb5193bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+3
-4
lib/gitlab/ci/status/composite.rb
lib/gitlab/ci/status/composite.rb
+1
-1
No files found.
app/models/ci/pipeline.rb
View file @
cba9eeb6
...
...
@@ -407,11 +407,10 @@ module Ci
def
legacy_stages_using_composite_status
stages
=
statuses
.
latest
.
group_by
(
&
:stage_idx
)
.
sort_by
(
&
:first
)
.
order
(
:stage_idx
,
:stage
)
.
group_by
(
&
:stage
)
stages
.
map
do
|
stage_idx
,
jobs
|
stage_name
=
jobs
.
first
.
stage
stages
.
map
do
|
stage_name
,
jobs
|
jobs_statuses
=
jobs
.
pluck
(
:status
,
:allow_failure
)
composite_status
=
Gitlab
::
Ci
::
Status
::
Composite
...
...
lib/gitlab/ci/status/composite.rb
View file @
cba9eeb6
...
...
@@ -73,7 +73,7 @@ module Gitlab
def
only_of?
(
*
names
)
matching
=
names
.
count
{
|
name
|
@status_set
.
include?
(
name
)
}
matching
>
0
&&
\
matching
>
0
&&
matching
==
@status_set
.
size
end
...
...
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