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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 02:23:05 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 02:23:05 +0300
commitd6e00f5373e24deaa7f143f5445ae9461ef5f615 (patch)
tree59d784dd10d349d54fda8924d00a79946bf1bfdb /app/workers/build_success_worker.rb
parent2b8292cd49dbc68b02f46f865b7115191bf2de07 (diff)
Improve specs and add missing cases that were not supported
Diffstat (limited to 'app/workers/build_success_worker.rb')
-rw-r--r--app/workers/build_success_worker.rb2
1 files changed, 1 insertions, 1 deletions
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