[JENKINS-29741] Add Job DSL support for CppCheck

          The upcoming generic DSL (https://github.com/jenkinsci/job-dsl-plugin/pull/816) will enable support for the CppCheck plugin:

          job('example') {
            publishers {
              cppcheckPublisher {
                pattern('**/cppcheck-result-*.xml')
                ignoreBlankFiles(false)
                threshold(null)
                allowNoReport(true)
                newThreshold(null)
                failureThreshold(null)
                newFailureThreshold(null)
                healthy(null)
                unHealthy(null)
                severityError(true)
                severityWarning(true)
                severityStyle(true)
                severityPerformance(true)
                severityInformation(true)
                severityNoCategory(true)
                severityPortability(true)
                xSize(100)
                ySize(200)
                numBuildsInGraph(5)
                displayAllErrors(true)
                displayErrorSeverity(true)
                displayWarningSeverity(true)
                displayStyleSeverity(true)
                displayPerformanceSeverity(true)
                displayInformationSeverity(true)
                displayNoCategorySeverity(true)
                displayPortabilitySeverity(true)
              }
            }
          }
          

          Daniel Spilker added a comment - The upcoming generic DSL ( https://github.com/jenkinsci/job-dsl-plugin/pull/816 ) will enable support for the CppCheck plugin: job( 'example' ) { publishers { cppcheckPublisher { pattern( '**/cppcheck-result-*.xml' ) ignoreBlankFiles( false ) threshold( null ) allowNoReport( true ) newThreshold( null ) failureThreshold( null ) newFailureThreshold( null ) healthy( null ) unHealthy( null ) severityError( true ) severityWarning( true ) severityStyle( true ) severityPerformance( true ) severityInformation( true ) severityNoCategory( true ) severityPortability( true ) xSize(100) ySize(200) numBuildsInGraph(5) displayAllErrors( true ) displayErrorSeverity( true ) displayWarningSeverity( true ) displayStyleSeverity( true ) displayPerformanceSeverity( true ) displayInformationSeverity( true ) displayNoCategorySeverity( true ) displayPortabilitySeverity( true ) } } }

          Felix Drueke added a comment -

          I can't find cppcheck in the publishers section (for DSL):
          https://jenkinsci.github.io/job-dsl-plugin/#path/job-publishers

          The above code example is not accepted by jenkins 2.51 .

          Is this not yet merged ?

          Felix Drueke added a comment - I can't find cppcheck in the publishers section (for DSL): https://jenkinsci.github.io/job-dsl-plugin/#path/job-publishers The above code example is not accepted by jenkins 2.51 . Is this not yet merged ?

          Felix Mueller added a comment - - edited

          As fdrueke has stated, this does not seem to be available in the current version of the Job DSL (1.76). Should the issue then not be re-opened?

          EDIT: Using the Job DSL API of my local Jenkins installation (not the online variant - plugin/job-dsl/api-viewer/index.html ), I found that the publisher is called 'publishCppCheck', not 'cppcheckPublisher' as written in the above comment.

          Felix Mueller added a comment - - edited As fdrueke has stated, this does not seem to be available in the current version of the Job DSL (1.76). Should the issue then not be re-opened? EDIT: Using the Job DSL API of my local Jenkins installation (not the online variant - plugin/job-dsl/api-viewer/index.html ), I found that the publisher is called ' publishCppCheck ', not ' cppcheckPublisher ' as written in the above comment.

            daspilker Daniel Spilker
            misery A. Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: