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

MavenPublisherContext.findbugs() fails with No signature of method: addStaticAnalysisContextAndPattern

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • Centos 7
      Jenkins 2.73
      Job DSL 1.64

      This happened after upgrading from 1.61, I haven't tried intermediate versions.  1.61 worked.

      Simpified code that actually fails:

      mavenJob('test-generated-job') {
        publishers {
          findbugs('bla')
        }
      }
      

      Exception:

      ERROR: (script, line 20) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext.addStaticAnalysisContextAndPattern() is applicable for argument types: (groovy.util.NodeBuilder, javaposse.jobdsl.dsl.helpers.publisher.StaticAnalysisContext, java.lang.String) values: [groovy.util.NodeBuilder@790fa77c, javaposse.jobdsl.dsl.helpers.publisher.StaticAnalysisContext@40a6654e, ...]
       
      

      Note: Only happens in mavenJobs (not matrix, for instance).  DSL API Viewer suggests that it should work in mavenJobs as well.

       

      Also, a similar thing happens with:

      mavenJob('test-generated-job') {
        publishers {
          analysisCollector {
            ...
          }
        }
      }

       

            daspilker Daniel Spilker
            akom Alexander Komarov
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: