diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-17 12:56:04 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-24 11:07:37 +0200 |
commit | f0d59b95f1da0293345705fe0b2c629b911a5b5e (patch) | |
tree | 258cb7e7c36257540cf9ee124f041fe66cd07d0b /app/services/ci | |
parent | 43dd213b8c0c1d306ace25f6d307b7e777c944cd (diff) | |
download | gitlab-ce-f0d59b95f1da0293345705fe0b2c629b911a5b5e.tar.gz |
Validate presence of a stage index in the model
Diffstat (limited to 'app/services/ci')
-rw-r--r-- | app/services/ci/ensure_stage_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/ci/ensure_stage_service.rb b/app/services/ci/ensure_stage_service.rb index 87f19b333de..447cbfd73f5 100644 --- a/app/services/ci/ensure_stage_service.rb +++ b/app/services/ci/ensure_stage_service.rb @@ -42,6 +42,7 @@ module Ci def create_stage Ci::Stage.create!(name: @build.stage, + index: @build.stage_idx, pipeline: @build.pipeline, project: @build.project) end |