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
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
lib/gitlab/ci/pipeline/chain/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
...
@@ -17,27 +17,11 @@ module Gitlab
end
end
rescue
ActiveRecord
::
RecordInvalid
=>
e
rescue
ActiveRecord
::
RecordInvalid
=>
e
error
(
"Failed to persist the pipeline:
#{
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
end
def
break?
def
break?
!
pipeline
.
persisted?
!
pipeline
.
persisted?
end
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
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