.gitlab-ci.yml validation errors
See original GitHub issueHi,
I’m seeing errors in the validation of .gitlab-ci.yml
files, specifically anchors, as described in https://github.com/redhat-developer/vscode-yaml/issues/60.
However, as per https://github.com/redhat-developer/vscode-yaml/issues/87, this doesn’t happen if I rename the file to .yaml
where it validates correctly.
Interestingly it does appear to be using the correct schema for validation, just not recognising the anchor is an anchor, and therefore complaining about missing attributes that would otherwise be mandatory.
Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:22 (5 by maintainers)
Top Results From Across the Web
Validate GitLab CI/CD configuration
Use the CI Lint tool to check the validity of GitLab CI/CD configuration. You can validate the syntax from a .gitlab-ci.yml file or...
Read more >Validate .gitlab-ci.yml syntax with the CI Lint tool
Validate .gitlab-ci.yml syntax with the CI Lint tool ... If you want to test the validity of your GitLab CI/CD configuration before committing...
Read more >Schema validation error with optional needed job in .gitlab-ci ...
Schema validation error with optional needed job in .gitlab-ci.yml ; Project, IntelliJ IDEA ; Priority, Normal N ; Type, Bug ; State, Submitted...
Read more >Top 10 Most Common Errors In GitLab CI Pipelines - Medium
First, check if you have named the pipeline exactly .gitlab-ci.yml and is located at the root of your project.
Read more >How can I test gitlab-ci.yml? - Stack Overflow
Better linting for .gitlab-ci.yml files · CI linter now can provide warnings in addition to errors · CI/CD configuration validation in Pipeline ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Not sure this is correct?
.gitlab-ci.yml
is the correct file name, it is the linter that only works if you rename it toyaml
It appears to, yes