Skip to content

Fix include:template: syntax in CI templates

Manuel Grabowski requested to merge mg-fix-template-include-syntax-20230919 into master

What does this MR do and why?

These templates are using incorrect YAML syntax: https://docs.gitlab.com/ee/ci/yaml/#includetemplate

As seen in https://gitlab.com/gitlab-com/ops-sub-department/section-ops-request-for-help/-/issues/191 (internal) this will lead to config should be an array or a string errors in any project if one of these templates is set up as Required pipeline configuration.

How to set up and validate locally

  1. Set one of the changed templates as Required pipeline configuration.
  2. Create new project, go to pipeline editor and enter any CI configuration
  3. Observe config should be an array or a string error
  4. Change templates according to the MR
  5. Observe error not occurring anymore

MR acceptance checklist

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

Merge request reports