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
Léo-Paul Géneau
gitlab-ce
Commits
4f2685fb
Commit
4f2685fb
authored
Dec 12, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify CI/CD bridge class
parent
320b6d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
app/models/ci/bridge.rb
app/models/ci/bridge.rb
+1
-8
No files found.
app/models/ci/bridge.rb
View file @
4f2685fb
...
...
@@ -4,18 +4,11 @@ module Ci
class
Bridge
<
CommitStatus
include
Importable
include
AfterCommitQueue
include
TokenAuthenticatable
include
Gitlab
::
Utils
::
StrongMemoize
belongs_to
:project
,
inverse_of: :builds
serialize
:options
# rubocop:disable Cop/ActiveRecordSerialize
belongs_to
:project
validates
:ref
,
presence:
true
before_save
:ensure_token
add_authentication_token_field
:token
,
encrypted:
true
def
self
.
retry
(
bridge
,
current_user
)
raise
NotImplementedError
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