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

warningsNG 11.3.0 does not recognize referenceJobName

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • warnings-plugin
    • Jenkins core org.jenkins-ci.main:jenkins-core:2.452.2 The MIT license

      Our Jenkinsfile has

      ```

      recordIssues qualityGates:

      [ [threshold: 1, type: 'TOTAL_HIGH', unstable: true], [threshold: 1, type: 'TOTAL_NORMAL', unstable: true], [threshold: 1, type: 'TOTAL_LOW', unstable: true], [threshold: 6, type: 'TOTAL_HIGH', unstable: false], [threshold: 6, type: 'TOTAL_NORMAL', unstable: false], [threshold: 6, type: 'TOTAL_LOW', unstable: false] ],

      referenceJobName: '/Lego/lego-pipeline/build/lego-multibranch/master', tools: [findBugs(pattern: '**/reports/spotbugs/*.xml', useRankAsPriority: true)]

      ```

      However, ever since upgrading to 11.3, we get an error

      ```

      WorkflowScript: 186: Invalid parameter "referenceJobName", did you mean "name"? @ line 186, column 14. referenceJobName: '/Lego/lego-pipeline/build/lego-multibranch/master', ^ 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)

      ```

            drulli Ulli Hafner
            sunpatel Sunny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: