diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-02 13:16:11 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-02 13:16:11 +0300 |
commit | fe0b2f81c7c9680a11288e0cdffc3e80dc1e8d58 (patch) | |
tree | fd19bea3c1118cb7438f0d2476bad322ccb5c421 /app/services/ci/create_pipeline_service.rb | |
parent | aa0d6b07b6a87459e75c69111643b9d6fe8a97c2 (diff) |
Refine implementation of pipeline stage seeds
Diffstat (limited to 'app/services/ci/create_pipeline_service.rb')
-rw-r--r-- | app/services/ci/create_pipeline_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb index 3f177122180..4dd74ebb1bb 100644 --- a/app/services/ci/create_pipeline_service.rb +++ b/app/services/ci/create_pipeline_service.rb @@ -42,7 +42,7 @@ module Ci return pipeline end - unless pipeline.has_stages? + if pipeline.has_stage_seeds? return error('No stages / jobs for this pipeline.') end |