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
Boxiang Sun
gitlab-ce
Commits
1c24c79a
Commit
1c24c79a
authored
Jan 25, 2017
by
Leandro Camargo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more lenient on build coverage value updates and fix specs
parent
441a9bee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/models/ci/build.rb
app/models/ci/build.rb
+1
-1
spec/lib/gitlab/import_export/safe_model_attributes.yml
spec/lib/gitlab/import_export/safe_model_attributes.yml
+1
-0
No files found.
app/models/ci/build.rb
View file @
1c24c79a
...
...
@@ -276,7 +276,7 @@ module Ci
def
update_coverage
coverage
=
extract_coverage
(
trace
,
coverage_regex
)
update_attributes
(
coverage:
coverage
)
if
coverage
.
is_a?
(
Numeric
)
update_attributes
(
coverage:
coverage
)
if
coverage
.
present?
end
def
extract_coverage
(
text
,
regex
)
...
...
spec/lib/gitlab/import_export/safe_model_attributes.yml
View file @
1c24c79a
...
...
@@ -222,6 +222,7 @@ CommitStatus:
-
queued_at
-
token
-
lock_version
-
coverage_regex
Ci::Variable:
-
id
-
project_id
...
...
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