diff options
| author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-03-24 09:03:11 +0000 |
|---|---|---|
| committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-03-24 09:03:11 +0000 |
| commit | 60e54a6271fefb3b5cbc6f1a7ff7ea037bebaff4 (patch) | |
| tree | b8992fcea815f8cf1390f27463a46fa85618d65a /lib | |
| parent | 8f6608af65563916897ebdda3c274270c969d604 (diff) | |
| parent | 3878a774f17b8404af9f516c20554ba742adbec4 (diff) | |
| download | gitlab-ce-60e54a6271fefb3b5cbc6f1a7ff7ea037bebaff4.tar.gz | |
Merge branch 'fix-ci-api-regression-for-after-script' into 'master'
Fix after_script processing for Runners APIv4
See merge request !10185
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gitlab/ci/build/step.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/gitlab/ci/build/step.rb b/lib/gitlab/ci/build/step.rb index 1877429ac46..ee034d9cc56 100644 --- a/lib/gitlab/ci/build/step.rb +++ b/lib/gitlab/ci/build/step.rb @@ -7,13 +7,12 @@ module Gitlab WHEN_ALWAYS = 'always'.freeze attr_reader :name - attr_writer :script - attr_accessor :timeout, :when, :allow_failure + attr_accessor :script, :timeout, :when, :allow_failure class << self def from_commands(job) self.new(:script).tap do |step| - step.script = job.commands + step.script = job.commands.split("\n") step.timeout = job.timeout step.when = WHEN_ON_SUCCESS end @@ -36,10 +35,6 @@ module Gitlab @name = name @allow_failure = false end - - def script - @script.split("\n") - end end end end |
