New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parsing pylint reports #6
Comments
Here is the format that is expected: |
Wow, thanks for the fast reply! I edited my msg-format to look like this,
So here is how the output comes,
Which (to me) looks like the correct format. But I'm still not getting any comments on my pull request. :( Here is the output from my jenkins system log,
From the job configure options, I've written Any ideas what I could be missing? |
Do you have a single Jenkins master setup or do you also have slaves? Are the slaves remote or on the same machine? |
And you are using violation-comments-to-github-plugin 1.6? |
this is a single jenkins machine running inside virtualbox. (it was setup via vagrant). OS is ubuntu 14.04 LTS 64-bit. Jenkins version is : 1.655 |
Do you find the file when executing this? |
Just ran the command on my terminal,
Looks like the file's there. |
the contents of pylint.out |
Change |
That .. that WORKED!!! 👍 💯 Thank you! I'm finally getting violation comments on my pull request!! :) |
Nice =) I will update the documentation here and add some logging to ease troubleshooting this kind of stuff. |
Hello Tomas,
I think there is an issue with the pylint (or flake8?) parser. I'm having the following concerns being raised by pylint,
And, try as I might, I can't seem to get the Violation Comments to GitHub Jenkins Plugin to write comments on my pull requests. Investigating the issue, I think its because the format of my reports does not match what you have on the regex. Specifically here,
https://github.com/tomasbjerre/violations-lib/blob/master/src/main/java/se/bjurr/violations/lib/parsers/Flake8Parser.java#L30
Now, I'm not going to ask that you change the regex (though it would be highly appreciated!), I would like some help in figuring it out. With a lot of trial-and-error I kind-of figured out that if I use the following as my msg template in pylint,
it should match the regex. Here are some sample messages I got for the above,
At least, the online java regex testers says that I got it right. But the comments to github plugin does not detect anything. On jenkins log, it says that it found 0 violations. Which should not be the case.
Can you please help me figure out how to format the lines from pylint?
The text was updated successfully, but these errors were encountered: