summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 12:08:28 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 12:08:28 +0100
commit43906336ff24e218cb1f7024d63a22367dd7e09a (patch)
tree326f69374123c68075942d45180b4c887376ba04 /app/workers
parentd6e00f5373e24deaa7f143f5445ae9461ef5f615 (diff)
downloadgitlab-ce-43906336ff24e218cb1f7024d63a22367dd7e09a.tar.gz
Fix tests and add has_environment?
Diffstat (limited to 'app/workers')
-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 450ba871c4c..e17add7421f 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.environment.present?
+ create_deployment(build) if build.has_environment?
end
end