summaryrefslogtreecommitdiff
path: root/app/models/ci/bridge.rb
blob: 29aa00a66d9cadbc6c0ab765e40791523c251b0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true

module Ci
  class Bridge < CommitStatus
    include Importable
    include AfterCommitQueue
    include Gitlab::Utils::StrongMemoize

    belongs_to :project
    validates :ref, presence: true

    def self.retry(bridge, current_user)
      raise NotImplementedError
    end

    def tags
      [:bridge]
    end

    def detailed_status(current_user)
      Gitlab::Ci::Status::Bridge::Factory
        .new(self, current_user)
        .fabricate!
    end

    def predefined_variables
      raise NotImplementedError
    end

    def execute_hooks
      raise NotImplementedError
    end
  end
end