Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
Description
Add support for Jenkins Pipeline with Cppcheck Plugin
https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md
Attachments
Issue Links
- is blocked by
-
JENKINS-41704 Clicking On `Cppcheck Results` From A Multi-Branch Pipeline Build Results In javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException
-
- Resolved
-
-
JENKINS-42613 Cppcheck publisher has no access to source files (experimental version for pipeline)
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Add support for Jenkins Pipeline with Cppcheck Plugin https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md |
Labels | pipeline | workflow |
Epic Link | JENKINS-34657 [ 170293 ] |
Labels | workflow | Pipeline workflow |
Workflow | JNJira [ 171314 ] | JNJira + In-Review [ 184253 ] |
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Labels | Pipeline workflow | Pipeline pipeline workflow |
Labels | Pipeline pipeline workflow | Pipeline pipeline |
Assignee | Gregory Boissinot [ gbois ] | Marco Steffan [ marcosteffan ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Link |
This issue is blocked by |
Link |
This issue is blocked by |
Labels | Pipeline pipeline | pipeline |
Attachment | cppcheck sidepnael error.png [ 40624 ] |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Attachment | image-2023-04-04-13-29-58-315.png [ 60208 ] |
Attachment | image-2023-04-04-13-34-29-528.png [ 60209 ] |
I think what's needed is to implement the `SimpleBuildStep` class interface. similar to what the xunit plugin does: https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java#L63
cppcheck does not implement this:
https://github.com/jenkinsci/cppcheck-plugin/blob/master/src/main/java/org/jenkinsci/plugins/cppcheck/CppcheckPublisher.java#L32
See also: https://github.com/jenkinsci/cobertura-plugin/issues/50