diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-31 17:50:08 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-31 17:50:08 +0300 |
commit | 2378f2c8cb0cdd9538c0336a359deadf52255adc (patch) | |
tree | 734f4f4c2e8dcc728105ab555ac8602aeeb70e2f /app/models/commit.rb | |
parent | 9e8e51d21e14b065491062eea3244cd755bff5f8 (diff) | |
download | gitlab-ci-2378f2c8cb0cdd9538c0336a359deadf52255adc.tar.gz |
Deploy without tests
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 2e1bd52..32bd334 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -137,7 +137,7 @@ class Commit < ActiveRecord::Base end def create_deploy_builds(ref) - if success? && !last_build.job.deploy? + if builds.empty? || (success? && !last_build.job.deploy?) project.jobs.deploy.active.each do |job| if job.run_for_ref?(ref) create_build_from_job(job) |