Skip to content

Config file gitlab-ci.yml: include:local regex pattern fixed

M. Said TERZİ requested to merge saidterzi/gitlab:master into master

What does this MR do and why?

Current regex pattern does not match with "template/*.yml" example string which is valid and runs without any issue. Therefore it gives error on vscode. So, I edited current include regex pattern from ^(https?://|/).+\\.ya?ml$ to ^(https?://|/?.?-?(?!\\w+://)\\w).+\\.ya?ml$.

Screenshots or screen recordings

regex-error

include-error

How to set up and validate locally

GitLab documentation validates "template/example.yml" usage is correct.

Related Documentation Page

In a .gitlab-ci.yml file, import another local file/folder in the same level folder without prepend slash.

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 M. Said TERZİ

Merge request reports