summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-01 23:04:56 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-01 23:04:56 +0000
commitecb57058b81f804f8548d6af35874136fa37743c (patch)
tree231c319263d0284ea1772582aff2fb919aaf94fd /app/models/commit.rb
parent185bc3c3a4207333b084d4294c345c10b193dacc (diff)
parentedfe6539b4c39caaffce119b8d716e94c86c9169 (diff)
downloadgitlab-ci-ecb57058b81f804f8548d6af35874136fa37743c.tar.gz
Merge branch 'deploy_without_tests' into 'master'
Deploy without tests Fixes #127 See merge request !51
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 2e1bd52..5f1aa92 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -137,11 +137,9 @@ class Commit < ActiveRecord::Base
end
def create_deploy_builds(ref)
- if success? && !last_build.job.deploy?
- project.jobs.deploy.active.each do |job|
- if job.run_for_ref?(ref)
- create_build_from_job(job)
- end
+ project.jobs.deploy.active.each do |job|
+ if job.run_for_ref?(ref)
+ create_build_from_job(job)
end
end
end