Skip to content

Pass before_script and script as-is preserving arrays

Kamil Trzciński requested to merge pass-before-script-as-is into master

What does this MR do?

Pass before_script and script to runner as-is preserving the arrays, and this will allow a runner to support multi-line commands properly:

test:
  script:
    - |
      bin/command my-multiline-command \
        --key=value \
        --url=http://address.com

We store before_script and script in ci_builds.options, but we still maintain commands for compatibility with other parts of the system. These are parts that should be moved out of ci_builds anyway, so there's no harm of storing that now, it only leads to slightly bigger storage requirements.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

not yet

Merge request reports