Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-22 18:11:45 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-25 12:38:25 +0300
commite5cd47fc97e7bc85153d695e02f0b0704a43da93 (patch)
tree7fafd2ca793b7c9a5f6b3db8165756eb297a015b /app/models/ci/bridge.rb
parentec7f4b487635fe8840adbc39279c3ae689897753 (diff)
Implement default `when` for bridge jobs as `on_success`
Diffstat (limited to 'app/models/ci/bridge.rb')
-rw-r--r--app/models/ci/bridge.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/ci/bridge.rb b/app/models/ci/bridge.rb
index 5450d40ea95..3c47e870238 100644
--- a/app/models/ci/bridge.rb
+++ b/app/models/ci/bridge.rb
@@ -37,6 +37,13 @@ module Ci
false
end
+ ##
+ # TODO we probably want to add support for `when` configuration.
+ #
+ def when
+ 'on_success'
+ end
+
def expanded_environment_name
end