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

Simplify CI/CD bridge class

parent 320b6d96
......@@ -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
......
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