[ 
https://issues.apache.org/jira/browse/BEAM-6912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16801751#comment-16801751
 ] 

Kasia Kucharczyk edited comment on BEAM-6912 at 3/26/19 2:07 PM:
-----------------------------------------------------------------

Also I found this where findBugs was restored because of same issue as in 
previous comment.

[https://github.com/apache/beam/pull/7970]

The only solution idea I found is possibility somehow point right method by 
adding `configure`. I am not really experienced with dsl gradle plugins but I 
imagine it might look like:
{code:java}
  configure { node ->
      node / 'properties' << 'io.jenkins.plugins.analysis.warnings.SpotBugs' {
          pattern('**/build/reports/spotbugs/*.xml')
      }
  }
{code}
This is source of the 
[idea|https://stackoverflow.com/questions/51564810/jenkins-dsl-script-test-failure-found-multiple-extensions-which-provide-meth].


was (Author: kasiak):
Also I found this where findBugs was restored because of same issue as in 
previous comment.

[https://github.com/apache/beam/pull/7970]

The only solution idea I found is possibility somehow point right method by 
adding `configure`. I am not really experienced with dsl gradle plugins but I 
imagine it might look like:
{code:java}
  configure { node ->
      node / 'properties' << 'io.jenkins.plugins.analysis.warnings.SpotBugs' {
          pattern('**/build/reports/spotbugs/*.xml')
      }
  }
{code}

> Spotbugs causes error in SeedJob while parsing PreCommit_Java
> -------------------------------------------------------------
>
>                 Key: BEAM-6912
>                 URL: https://issues.apache.org/jira/browse/BEAM-6912
>             Project: Beam
>          Issue Type: Bug
>          Components: build-system
>            Reporter: Kasia Kucharczyk
>            Assignee: Kasia Kucharczyk
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> cc: [~iemejia] cc: [~kenn]
> Change from Findbugs to Spotbug in PreCommit_Java caused following error 
> while running seed job:
> {code:java}
> ERROR: (job_PreCommit_Java.groovy, line 44) No signature of method: 
> javaposse.jobdsl.plugin.structs.DescribableListContext.spotbugs() is 
> applicable for argument types: 
> (job_PreCommit_Java$_run_closure1$_closure2$_closure3$_closure5$_closure7) 
> values: 
> [job_PreCommit_Java$_run_closure1$_closure2$_closure3$_closure5$_closure7@a79b3a7]
> {code}
> Example job run here:
>  
> [https://builds.apache.org/view/A-D/view/Beam/view/All/job/beam_SeedJob/3704/]
> After investigating it with Ismaël, probably the reason is following PR:
>  [https://github.com/apache/beam/pull/8121/]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to