summaryrefslogtreecommitdiff
path: root/app/models/ci/bridge.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-22 13:56:06 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-25 10:37:18 +0100
commit20e7d4882c2ac111489ed44a7a51f6a9023b1d87 (patch)
tree7b8818f06e409cbbe0a77eacc3c24a3ae3d516a3 /app/models/ci/bridge.rb
parent76e7b19c8158bcf000db8575f958161a232d643e (diff)
downloadgitlab-ce-20e7d4882c2ac111489ed44a7a51f6a9023b1d87.tar.gz
Make CI/CD bridge job a pipeline processable entity
Diffstat (limited to 'app/models/ci/bridge.rb')
-rw-r--r--app/models/ci/bridge.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/models/ci/bridge.rb b/app/models/ci/bridge.rb
index 85234c06183..9fd802692ee 100644
--- a/app/models/ci/bridge.rb
+++ b/app/models/ci/bridge.rb
@@ -2,6 +2,7 @@
module Ci
class Bridge < CommitStatus
+ include Ci::Processable
include Importable
include AfterCommitQueue
include Gitlab::Utils::StrongMemoize
@@ -24,6 +25,21 @@ module Ci
.fabricate!
end
+ def schedulable?
+ false
+ end
+
+ def action?
+ false
+ end
+
+ def artifacts?
+ false
+ end
+
+ def expanded_environment_name
+ end
+
def predefined_variables
raise NotImplementedError
end
@@ -31,5 +47,9 @@ module Ci
def execute_hooks
raise NotImplementedError
end
+
+ def to_partial_path
+ 'projects/ci/builds/build'
+ end
end
end