diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-03 14:51:23 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-06 12:04:04 +0300 |
commit | dd2409119183578b12148654899e8e29c6105572 (patch) | |
tree | 980ed2434b784e3da7c981e5d3c19a4701f3a56d /app/services/ci/process_pipeline_service.rb | |
parent | d1b59476df4cbc84830bdf617d915c066fcb0f60 (diff) |
Add support for blocking actions to CI/CD pipeline
Diffstat (limited to 'app/services/ci/process_pipeline_service.rb')
-rw-r--r-- | app/services/ci/process_pipeline_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/ci/process_pipeline_service.rb b/app/services/ci/process_pipeline_service.rb index 24428d9afae..30fccbddc33 100644 --- a/app/services/ci/process_pipeline_service.rb +++ b/app/services/ci/process_pipeline_service.rb @@ -22,6 +22,8 @@ module Ci def process_stage(index) current_status = status_for_prior_stages(index) + return if HasStatus::BLOCKED_STATUS == current_status + if HasStatus::COMPLETED_STATUSES.include?(current_status) created_builds_in_stage(index).select do |build| Gitlab::OptimisticLocking.retry_lock(build) do |subject| |