Update custom tag reference in CI schema
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 |
---|---|
How to set up and validate locally
- Go to the Pipeline Editor (CI/CD > Editor)
- 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
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mireya Andres