DevOps-Bash-tools icon indicating copy to clipboard operation
DevOps-Bash-tools copied to clipboard

fix(gitlab_validate_ci_yaml): syntax error

Open TenviLi opened this issue 3 years ago • 3 comments

TenviLi avatar Jun 18 '22 18:06 TenviLi

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jun 18 '22 18:06 sonarqubecloud[bot]

Sider has detected 1 warning on analyzing the commit de18e27.

If the errors persist even after retrying, the following actions may resolve them:

If you still have problems, feel free to ask us via chat. 💬


You can turn off such notifications if unnecessary.

sider[bot] avatar Jun 18 '22 18:06 sider[bot]

Did this cause you an issue and if so could you please post the output showing it, as this seems to work for me and the trailing $ is there to ensure it's the filename, not just a part of a path, eg.

$ gitlab_validate_ci_yaml.sh ./.gitlab-ci.yml/blah
invalid filename given, must be called '.gitlab-ci.yml', instead got:  ./.gitlab-ci.yml/blah
$ gitlab_validate_ci_yaml.sh ./.gitlab-ci.yml
valid

HariSekhon avatar Jun 20 '22 10:06 HariSekhon