question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.gitlab-ci.yml validation errors

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Reactions:16
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
adam-mosscommented, Oct 30, 2019

Not sure this is correct?

.gitlab-ci.yml is the correct file name, it is the linter that only works if you rename it to yaml

5reactions
adam-mosscommented, Aug 24, 2018

It appears to, yes

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found