Skip to content
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

Jenkins 35096 cppcheck plugin pipeline support #36

Merged
merged 9 commits into from
Nov 26, 2017

Conversation

James-Dengel
Copy link
Contributor

This includes changes for the syntax generator as well as the other changes from Marco Steffan.

@loganek
Copy link

loganek commented Aug 10, 2017

Is there anything that blocks merging the PR?

@James-Dengel
Copy link
Contributor Author

@loganek not as far as I know the build should build on java 8.

@loganek
Copy link

loganek commented Aug 21, 2017

@James-Dengel awesome! @mixalturek, would it be possible to merge it?

@mixalturek
Copy link
Contributor

Hi, I'm no longer interested in this plugin and mainly I don't have any time for testing of the changes and releasing of a new version. Please become a maintainer and ask for the permissions.

https://wiki.jenkins.io/display/JENKINS/Adopt+a+Plugin

@RedouanIR
Copy link

Hi all,

I have been working on the plugin to make it compatible with jenkins pipeline. I think it is finished and has been tested by our company. It seems to be working to our expectations. The plugin has been developed in Java8 environment.

Can I do a pull request to test the plugin, since the JENKINS-35096 is still open ?

@marcosteffan
Copy link
Contributor

@James-Dengel thanks to your work and following the guidelines from https://jenkins.io/doc/developer/plugin-development/pipeline-integration/#basic-update on making plugins pipeline compatible.

If you're fine with that I would merge the branch to master.

@James-Dengel
Copy link
Contributor Author

I have no issue with that at all @marcosteffan :)

@amarlier
Copy link

Any news when this will be available?
I'm eager to use cppchek in my pipeline to pubish result

@marcosteffan marcosteffan merged commit 22020cd into jenkinsci:master Nov 26, 2017
@jzylkin
Copy link

jzylkin commented Nov 27, 2017

I would like to know when you are planning to release the next version of cppCheck. It contains bug fixes that our team needs. Thank you for your work on this.

@canaras81
Copy link

canaras81 commented Feb 27, 2018

Same question as above: Any plans to release a new version? We'd like to use this feature..

@cdunford
Copy link

Also looking forward to a new version - please cut a release.

@bb-dsa
Copy link

bb-dsa commented May 17, 2018

+1 Any news on a new release date.

@sithiksm
Copy link

We need cppCheck for pipeline and waiting for new version with this fix. Any plan for new release?

@feliwir
Copy link

feliwir commented Jun 15, 2018

Any plans for releasing this? We need it aswell

@kerrhome
Copy link

We couldn't wait for it to be released, so I made a custom parser using the Warnings plugin. It works perfectly and you get all of the built-in power of the Warnings plugin, which most have installed already. If anyone is interested in my setup, let me know and I'll post it. Since the Warnings plugin plans to add cppcheck as a built-in parser and we already have our customer parser, we actually have no plans to return to this plugin.

@peter-banfield-fc
Copy link

@kerrhome I would be interested in learning more about your setup.

@kerrhome
Copy link

kerrhome commented Jul 5, 2018

image

@kerrhome
Copy link

kerrhome commented Jul 5, 2018

You'll find that under Jenkins->Configure in the section "Compiler Warnings". Look for the "Compiler Warnings" section and add a new parser. Give it a name like "Cppcheck-" so you can differentiate it in the pick list. The rest should be exactly what I have there. Then you can implement it in a pipeline like this:

warnings (
  parserConfigurations: [[parserName: 'CppCheck-<myteam>', pattern: 'cppcheck.txt']], categoriesPattern: '',
  defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', unHealthy: ''
)

To run cppcheck, use this option (at least):

--template="{file},,{line},,{severity},,{id},,{message}"

and capture stderr in cppcheck.txt. (adjust things how you like of course).

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet