Simplify CI/CD bridge class
This commit is contained in:
parent
320b6d965e
commit
4f2685fb7f
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue