Simplify CI/CD bridge class

This commit is contained in:
Grzegorz Bizon 2018-12-12 13:49:42 +01:00
parent 320b6d965e
commit 4f2685fb7f

View file

@ -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