mschuchard / linter-jenkins

Jenkinsfile lint via declarative linter for pulsar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Curl method doesn't work

IamBlade opened this issue · comments

Hi, I am not seeing the debug command in the linter UI even though the file language is detected as Jenkinsfile. If I change the filename to just "Jenkinsfile" I see the debug command then, but it still doesn't provide any error/warnings when I make any file changes.

Screenshot (38)_LI

with debug command

image
without debug command

In addition to being recognized by Atom as either Jenkinsfile or Groovy language, the filename must contain Jenkinsfile in it to exclude non-Jenkinsfile Groovy files. I can modify the code to only require Jenkinsfile in the file name if it is recognized as Groovy.

Resolved in 1ad1825.

Thanks for the quick response.

The language-jenkinsfile package mentions the scope name as source.groovy. But my file grammar says "Jenkinsfile" which is the "name" attribute in the grammar CSON file. So I think your change would actually exclude Jenkinsfiles from being recognised.

Also in the 2nd screenshot attached, my files do have the word "jenkinsfile" in their name, but in lower-case and ideally should be linted. Even in the 1st screenshot, where the case is upper, the info shows the curl request being sent but there are seemingly no error messages, as they should have come. So rather than looking at the filename, wouldn't checking the grammar name work better?

Thanks.