Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35096

Add support for Jenkins Pipeline to the cppcheck-plugin

    XMLWordPrintable

Details

    Description

      Add support for Jenkins Pipeline with Cppcheck Plugin
      https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md

      Attachments

        Issue Links

          Activity

            viethq92 viet added a comment - - edited

            Hi marcosteffan , djviking ,

            When I add stage

            stage "cppcheck"
            step([$class: 'CppcheckPublisher',  to my jenkinfile

            it raises a warning and it seems to be the failure

            Maybe CppcheckPublisher doesn't have var member like displayInformationSeverity, xSize, ySize

            Could you help me to solve this issue?

            Thanks

            viethq92 viet added a comment - - edited Hi marcosteffan , djviking , When I add stage stage "cppcheck" step([$class: 'CppcheckPublisher',   to my jenkinfile it raises a warning and it seems to be the failure Maybe CppcheckPublisher doesn't have var member like displayInformationSeverity, xSize, ySize Could you help me to solve this issue? Thanks

            I have the same problem as daan_philips ...

            [Cppcheck] java.lang.IllegalArgumentException: No cppcheck test report file(s) were found with the pattern '**/cppcheck-result.xml'
            

            although I configured a different path in the pipeline syntax:

               step([$class: 'CppcheckPublisher',        pattern: 'Testing/cppcheck-report.xml',        ignoreBlankFiles: false, threshold: "0", ........
            
            drywolf Wolfgang Steiner added a comment - I have the same problem as daan_philips ... [Cppcheck] java.lang.IllegalArgumentException: No cppcheck test report file(s) were found with the pattern '**/cppcheck-result.xml' although I configured a different path in the pipeline syntax: step([$class: 'CppcheckPublisher' , pattern: 'Testing/cppcheck-report.xml' , ignoreBlankFiles: false , threshold: "0" , ........
            daan_philips Daan Timmer added a comment -

            Am on version 1.22

            Using the example provided above but it keeps trying to read a file called `**/cppcheck-result.xml`

            Any way to solve this? Or will this be fixed in a future version?

            daan_philips Daan Timmer added a comment - Am on version 1.22 Using the example provided above but it keeps trying to read a file called `**/cppcheck-result.xml` Any way to solve this? Or will this be fixed in a future version?
            nimrod Kasia Gauza added a comment - - edited

            It is also behaving faulty on my Jenkins instace. Update gave me several hours of troubleshooting/rebuilding cppcheck to 1.21, reuploading and so on. I have Jenkins ver. 2.73.3.

            Error:
            org.apache.commons.jelly.JellyTagException: jar:file:(...)/jenkins-home/plugins/cppcheck/WEB-INF/lib/classes.jar!/org/jenkinsci/plugins/cppcheck/CppcheckResult/index.jelly:3:62: <st:include> No page found 'sidepanel.jelly' for class org.jenkinsci.plugins.cppcheck.CppcheckResult

            nimrod Kasia Gauza added a comment - - edited It is also behaving faulty on my Jenkins instace. Update gave me several hours of troubleshooting/rebuilding cppcheck to 1.21, reuploading and so on. I have Jenkins ver. 2.73.3. Error: org.apache.commons.jelly.JellyTagException: jar: file:(...)/jenkins-home/plugins/cppcheck/WEB-INF/lib/classes.jar!/org/jenkinsci/plugins/cppcheck/CppcheckResult/index.jelly:3:62: <st:include> No page found 'sidepanel.jelly' for class org.jenkinsci.plugins.cppcheck.CppcheckResult
            rezss Ma Ko added a comment - - edited

            Why is this issue resolved and listed as Release 1.22? Still can't use it?

            rezss Ma Ko added a comment - - edited Why is this issue resolved and listed as Release 1.22? Still can't use it?

            People

              marcosteffan Marco Steffan
              djviking Sverre Moe
              Votes:
              49 Vote for this issue
              Watchers:
              60 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: