From e5cd47fc97e7bc85153d695e02f0b0704a43da93 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 22 Jan 2019 16:11:45 +0100 Subject: Implement default `when` for bridge jobs as `on_success` --- app/models/ci/bridge.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/models/ci/bridge.rb') 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 -- cgit v1.2.3