Skip to content

Update custom tag reference in CI schema

Mireya Andres requested to merge update-reference-schema into master

What does this MR do and why?

Fix for #348666 (comment 1106425782)

Adds support for the custom yaml keyword !reference for the keywords image, tags, and script.

This also removes the title from the CI schema so the annotations don't render it for every keyword.

Screenshots or screen recordings

For the title removal:

Before After
Screen_Shot_2022-09-21_at_16.27.56 Screen_Shot_2022-09-21_at_16.27.20

How to set up and validate locally

  1. Go to the Pipeline Editor (CI/CD > Editor)
  2. Copy-paste the following into your .gitlab-ci.yml file:
    .base:
      image: busybox
      tags: gitlab-org
      stage: test
    
    job:
      image: !reference [.base, image]
      tags:
        - !reference [.base, tags]
      stage: !reference [.base, stage]
      script: echo
  3. Verify that no linting errors show up.

MR acceptance checklist

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

Edited by Mireya Andres

Merge request reports