diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-02 18:29:57 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-02 18:29:57 -0700 |
commit | 1bb72f838cde2d7f3cfd3e55c2e189499ff0f1cb (patch) | |
tree | 93c7323ed78db8924e8953794df28aaef1402bdf /app/models/commit.rb | |
parent | 2aa77d14ef426e5f775cd3146883fdfc4f499b29 (diff) | |
parent | ecb57058b81f804f8548d6af35874136fa37743c (diff) | |
download | gitlab-ci-1bb72f838cde2d7f3cfd3e55c2e189499ff0f1cb.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ci
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 8 |
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 |