diff options
| author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-11 13:34:12 +0100 |
|---|---|---|
| committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-11 13:37:31 +0100 |
| commit | cdd3a806825db480b9cc9dfd36f3cf58c84e0f61 (patch) | |
| tree | b4eaae50d3485609bc9c9615813559c5e74353af /app/controllers/ci | |
| parent | f41b535ced0cdddb67661bdb0a6216216dc6b89c (diff) | |
| download | gitlab-ce-cdd3a806825db480b9cc9dfd36f3cf58c84e0f61.tar.gz | |
Allow subsequent validations in CI Linterfix/ci-linter-sequence-validations
Closes #5851
Diffstat (limited to 'app/controllers/ci')
| -rw-r--r-- | app/controllers/ci/lints_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/ci/lints_controller.rb b/app/controllers/ci/lints_controller.rb index e782a51e7eb..a7af3cb8345 100644 --- a/app/controllers/ci/lints_controller.rb +++ b/app/controllers/ci/lints_controller.rb @@ -6,11 +6,13 @@ module Ci end def create - if params[:content].blank? + @content = params[:content] + + if @content.blank? @status = false @error = "Please provide content of .gitlab-ci.yml" else - @config_processor = Ci::GitlabCiYamlProcessor.new params[:content] + @config_processor = Ci::GitlabCiYamlProcessor.new(@content) @stages = @config_processor.stages @builds = @config_processor.builds @status = true |
