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

blameDisabled now invalid on recordIssues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None

      We recently updated from warnings-ng 10.7.0 to 11.2.2 and now are experiencing a syntax error but did not see anything indicating that there was a change to the syntax.  If we had to guess this is a change from https://github.com/jenkinsci/warnings-ng-plugin/pull/1652 but test still show this parameter in use https://github.com/jenkinsci/warnings-ng-plugin/blob/095ef117f4b14eca2573172f94d7c5317416378a/plugin/src/test/resources/io/jenkins/plugins/analysis/warnings/integrations/job-dsl-warnings-ng.yaml#L8 .  Our style is to explicitly set most things to avoid surprises if a default parameter was to change.

      Error:

      Obtained Jenkinsfile from d0bc94227a8cd7e914e061a2569da80723da53cb
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 217: Invalid parameter "blameDisabled", did you mean "name"? @ line 217, column 33.
                                         blameDisabled: true,
                                         ^1 error    at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
          at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
          at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
          at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
          at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
          at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
          at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
          at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox$Scope.parse(GroovySandbox.java:163)
          at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:190)
          at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:175)
          at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:635)
          at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:581)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
          at hudson.model.ResourceController.execute(ResourceController.java:101)
          at hudson.model.Executor.run(Executor.java:442)
      Finished: FAILURE

      pipeline

      recordIssues aggregatingResults: true,
          blameDisabled: true,
          enabledForFailure: true,
          minimumSeverity: 'HIGH',
          qualityGates: [[threshold: 1, type: 'TOTAL', unstable: false]],
          filters: [excludeType('unmatchedSuppression')],
          tools: [cppCheck(pattern: 'cppcheck.xml'), clangTidy(pattern: 'clang_tidy_log.txt')] 

            drulli Ulli Hafner
            bmagistro Ben
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: