BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
29d87db8
Commit
29d87db8
authored
Mar 05, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unsued pipelines-related prometheus metric
parent
8a0052c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
create.rb
lib/gitlab/ci/pipeline/chain/create.rb
+0
-16
No files found.
lib/gitlab/ci/pipeline/chain/create.rb
View file @
29d87db8
...
...
@@ -17,27 +17,11 @@ module Gitlab
end
rescue
ActiveRecord
::
RecordInvalid
=>
e
error
(
"Failed to persist the pipeline:
#{
e
}
"
)
ensure
if
pipeline
.
builds
.
where
(
stage_id:
nil
).
any?
invalid_builds_counter
.
increment
(
node:
hostname
)
end
end
def
break?
!
pipeline
.
persisted?
end
private
def
invalid_builds_counter
@counter
||=
Gitlab
::
Metrics
.
counter
(
:gitlab_ci_invalid_builds_total
,
'Invalid builds without stage assigned counter'
)
end
def
hostname
@hostname
||=
Socket
.
gethostname
end
end
end
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