Commit 4f2685fb authored by Grzegorz Bizon's avatar Grzegorz Bizon

Simplify CI/CD bridge class

parent 320b6d96
...@@ -4,18 +4,11 @@ module Ci ...@@ -4,18 +4,11 @@ module Ci
class Bridge < CommitStatus class Bridge < CommitStatus
include Importable include Importable
include AfterCommitQueue include AfterCommitQueue
include TokenAuthenticatable
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
belongs_to :project, inverse_of: :builds belongs_to :project
serialize :options # rubocop:disable Cop/ActiveRecordSerialize
validates :ref, presence: true validates :ref, presence: true
before_save :ensure_token
add_authentication_token_field :token, encrypted: true
def self.retry(bridge, current_user) def self.retry(bridge, current_user)
raise NotImplementedError raise NotImplementedError
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment