diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-29 13:11:35 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-29 13:11:35 +0200 |
commit | 1255205d896d070a6d8bcefa3774116263db84be (patch) | |
tree | 7e9a78f75c6d947b35e46f055e02bc76c1409c14 /lib/ci | |
parent | bd807503d14f2592e2c89c361c6967866580e977 (diff) | |
download | gitlab-ce-1255205d896d070a6d8bcefa3774116263db84be.tar.gz |
Add method that returns commands for ci job entry
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index 5f1ba97214e..c00c2020b4f 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -55,12 +55,7 @@ module Ci { stage_idx: @stages.index(job[:stage]), stage: job[:stage], - ## - # Refactoring note: - # - before script behaves differently than after script - # - after script returns an array of commands - # - before script should be a concatenated command - commands: [job[:before_script], job[:script]].flatten.compact.join("\n"), + commands: job[:commands], tag_list: job[:tags] || [], name: job[:name].to_s, allow_failure: job[:allow_failure] || false, |