From d6e00f5373e24deaa7f143f5445ae9461ef5f615 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Thu, 17 Nov 2016 00:23:05 +0100 Subject: Improve specs and add missing cases that were not supported --- app/workers/build_success_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/workers/build_success_worker.rb') diff --git a/app/workers/build_success_worker.rb b/app/workers/build_success_worker.rb index 1bc9745ecbc..450ba871c4c 100644 --- a/app/workers/build_success_worker.rb +++ b/app/workers/build_success_worker.rb @@ -4,7 +4,7 @@ class BuildSuccessWorker def perform(build_id) Ci::Build.find_by(id: build_id).try do |build| - create_deployment(build) if build.deployable? + create_deployment(build) if build.environment.present? end end -- cgit v1.2.3