Skip to content

Add with: to the CI JSON schema

What does this MR do and why?

Add to the CI json schema the with keyword under all required fields.

Screenshots or screen recordings

Before After
Screenshot_2023-04-18_at_11.36.18_AM Screenshot_2023-04-18_at_11.33.17_AM

How to set up and validate locally

  1. Enable all FF relating to the interpolation of spec:inputs
    • ci_multi_doc_yaml (actor: project) - Pre-requisites for inputs for include
    • ci_includable_files_interpolation (actor: project) - Enables inputs for include: via the with: syntax.
    • ci_include_components (actor: namespace) - Enables the include:component syntax for all projects in a namespace.
  2. Write the following in your CI config file:
template: ''
  with:
    my_var: value

component: '/my-component/path'
  with:
    my_var: value
  1. Notice there are no errors (squigly lines) in the editor relating to with:

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #407558 (closed)

Edited by Frédéric Caplette

Merge request reports