• 5.2.0

      We tried to change our Job-DSL-Scripts from deprecated "publishers" to new warnings-ng-plugin.

      It works well for checkstyle, cpd and pmd but not for spotbugs. Here we got the following error message when executing the seed-Job:

      ERROR: (script, line 94) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.SpotBugs() is applicable for argument types: (script$_run_closure1$_closure5$_closure22$_closure24$_closure26) values: [script$_run_closure1$_closure5$_closure22$_closure24$_closure26@e96a740]

       

      Here the DSL-Snipped:

      // recordIssues {
      	  tools {
                  checkStyle {
                     pattern('**/checkstyle-result.xml')
                     reportEncoding('UTF-8')
                  }
                spotBugs {
                   id('bugs')
                   name('SpotBugs Warnungen')
                   pattern('**/spotbugsXml.xml')
                   reportEncoding('UTF-8')
                   useRankAsPriority(true)
                }
                  pmdParser {
                     pattern('**/pmd.xml')
                     reportEncoding('UTF-8')
                  }
                  cpd {
                     highThreshold(50)
                     normalThreshold(25)
                     pattern('**/cpd.xml')
                     reportEncoding('UTF-8')
                  }
               }
            }

      What is the mistake?

       

      Regards, Sascha

       

          [JENKINS-57817] Job DSL + Warnings-NG + Spotbugs not working

          Sascha Meyer created issue -
          Sascha Meyer made changes -
          Description Original: We tried to change our Job-DSL-Scripts from deprecated "publishers" to new warnings-ng-plugin.

          It works well for checkstyle, cpd and pmd but not for spotbugs. Here we got the following error message when executing the seed-Job:

          {{ERROR: (script, line 94) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.SpotBugs() is applicable for argument types: (script$_run_closure1$_closure5$_closure22$_closure24$_closure26) values: [script$_run_closure1$_closure5$_closure22$_closure24$_closure26@e96a740]}}

           

          Here the DSL-Snipped:
          {quote}recordIssues {
             tools {
                checkStyle {
                   pattern('**/checkstyle-result.xml')
                   reportEncoding('UTF-8')
                }
                spotBugs {
                   id('bugs')
                   name('SpotBugs Warnungen')
                   pattern('**/spotbugsXml.xml')
                   reportEncoding('UTF-8')
                   useRankAsPriority(true)
                }
                pmdParser {
                   pattern('**/pmd.xml')
                    reportEncoding('UTF-8')
                }
                cpd {
                   highThreshold(50)
                   normalThreshold(25)
                   pattern('**/cpd.xml')
                   reportEncoding('UTF-8')
                }
              }
           }
          {quote}
          What is the mistake?

           

          Regards, Sascha

           
          New: We tried to change our Job-DSL-Scripts from deprecated "publishers" to new warnings-ng-plugin.

          It works well for checkstyle, cpd and pmd but not for spotbugs. Here we got the following error message when executing the seed-Job:

          {{ERROR: (script, line 94) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.SpotBugs() is applicable for argument types: (script$_run_closure1$_closure5$_closure22$_closure24$_closure26) values: [script$_run_closure1$_closure5$_closure22$_closure24$_closure26@e96a740]}}

           

          Here the DSL-Snipped:
          {quote}recordIssues {
           tools {
           checkStyle {
           pattern('**/checkstyle-result.xml')
           reportEncoding('UTF-8')
           }
           spotBugs {
           id('bugs')
           name('SpotBugs Warnungen')
           pattern('**/spotbugsXml.xml')
           reportEncoding('UTF-8')
           useRankAsPriority(true)
           }
           pmdParser {
           pattern('**/pmd.xml')
           reportEncoding('UTF-8')
           }
           cpd {
           highThreshold(50)
           normalThreshold(25)
           pattern('**/cpd.xml')
           reportEncoding('UTF-8')
           }
           }
           }{quote}
          What is the mistake?

           

          Regards, Sascha

           
          Sascha Meyer made changes -
          Description Original: We tried to change our Job-DSL-Scripts from deprecated "publishers" to new warnings-ng-plugin.

          It works well for checkstyle, cpd and pmd but not for spotbugs. Here we got the following error message when executing the seed-Job:

          {{ERROR: (script, line 94) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.SpotBugs() is applicable for argument types: (script$_run_closure1$_closure5$_closure22$_closure24$_closure26) values: [script$_run_closure1$_closure5$_closure22$_closure24$_closure26@e96a740]}}

           

          Here the DSL-Snipped:
          {quote}recordIssues {
           tools {
           checkStyle {
           pattern('**/checkstyle-result.xml')
           reportEncoding('UTF-8')
           }
           spotBugs {
           id('bugs')
           name('SpotBugs Warnungen')
           pattern('**/spotbugsXml.xml')
           reportEncoding('UTF-8')
           useRankAsPriority(true)
           }
           pmdParser {
           pattern('**/pmd.xml')
           reportEncoding('UTF-8')
           }
           cpd {
           highThreshold(50)
           normalThreshold(25)
           pattern('**/cpd.xml')
           reportEncoding('UTF-8')
           }
           }
           }{quote}
          What is the mistake?

           

          Regards, Sascha

           
          New: We tried to change our Job-DSL-Scripts from deprecated "publishers" to new warnings-ng-plugin.

          It works well for checkstyle, cpd and pmd but not for spotbugs. Here we got the following error message when executing the seed-Job:

          {{ERROR: (script, line 94) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.SpotBugs() is applicable for argument types: (script$_run_closure1$_closure5$_closure22$_closure24$_closure26) values: [script$_run_closure1$_closure5$_closure22$_closure24$_closure26@e96a740]}}

           

          Here the DSL-Snipped:
          {code:java}
          // recordIssues {
          tools {
                      checkStyle {
                         pattern('**/checkstyle-result.xml')
                         reportEncoding('UTF-8')
                      }
                    spotBugs {
                       id('bugs')
                       name('SpotBugs Warnungen')
                       pattern('**/spotbugsXml.xml')
                       reportEncoding('UTF-8')
                       useRankAsPriority(true)
                    }
                      pmdParser {
                         pattern('**/pmd.xml')
                         reportEncoding('UTF-8')
                      }
                      cpd {
                         highThreshold(50)
                         normalThreshold(25)
                         pattern('**/cpd.xml')
                         reportEncoding('UTF-8')
                      }
                   }
                }{code}
          What is the mistake?

           

          Regards, Sascha

           
          Ulli Hafner made changes -
          Component/s New: job-dsl-plugin [ 16720 ]
          Component/s Original: warnings-ng-plugin [ 24526 ]
          Ulli Hafner made changes -
          Assignee Original: Ulli Hafner [ drulli ] New: Daniel Spilker [ daspilker ]
          Ulli Hafner made changes -
          Component/s New: warnings-ng-plugin [ 24526 ]
          Ulli Hafner made changes -
          Comment [ Can you check what happens if you remove {{id}} and {{name}}? ]
          Daniel Spilker made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Spilker made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Fixed but Unreleased [ 10203 ]
          Ulli Hafner made changes -
          Released As New: 5.2.0
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Ulli Hafner made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            daspilker Daniel Spilker
            sorehead666900 Sascha Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: