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
20e7d488
Commit
20e7d488
authored
Jan 22, 2019
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make CI/CD bridge job a pipeline processable entity
parent
76e7b19c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletion
+43
-1
app/models/ci/bridge.rb
app/models/ci/bridge.rb
+20
-0
app/presenters/ci/bridge_presenter.rb
app/presenters/ci/bridge_presenter.rb
+23
-0
lib/gitlab/ci/status/bridge/common.rb
lib/gitlab/ci/status/bridge/common.rb
+0
-1
No files found.
app/models/ci/bridge.rb
View file @
20e7d488
...
...
@@ -2,6 +2,7 @@
module
Ci
class
Bridge
<
CommitStatus
include
Ci
::
Processable
include
Importable
include
AfterCommitQueue
include
Gitlab
::
Utils
::
StrongMemoize
...
...
@@ -24,6 +25,21 @@ module Ci
.
fabricate!
end
def
schedulable?
false
end
def
action?
false
end
def
artifacts?
false
end
def
expanded_environment_name
end
def
predefined_variables
raise
NotImplementedError
end
...
...
@@ -31,5 +47,9 @@ module Ci
def
execute_hooks
raise
NotImplementedError
end
def
to_partial_path
'projects/ci/builds/build'
end
end
end
app/presenters/ci/bridge_presenter.rb
0 → 100644
View file @
20e7d488
# frozen_string_literal: true
module
Ci
class
BridgePresenter
<
CommitStatusPresenter
def
status_title
tooltip_for_badge
end
def
tooltip_message
"
#{
subject
.
name
}
-
#{
detailed_status
.
status_tooltip
}
"
end
private
def
tooltip_for_badge
detailed_status
.
badge_tooltip
.
capitalize
end
def
detailed_status
@detailed_status
||=
subject
.
detailed_status
(
user
)
end
end
end
lib/gitlab/ci/status/bridge/common.rb
View file @
20e7d488
...
...
@@ -18,7 +18,6 @@ module Gitlab
end
def
details_path
raise
NotImplementedError
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