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

Warnings module crashes with pep8 output

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • Ubuntu, Jenkins ver. 1.466.2, Violations 0.7.11, static analysis utilities 1.48, warnings 4.18

    Description

      Started a new project, it builds fine and pep8 analysis is correctly printed to the log. Adding the "warnings" module to run as a post-build action, it crashes:

      [WARNINGS] Parsing warnings in console log with parser Pep8
      ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception
      java.lang.NullPointerException
      at hudson.plugins.violations.util.AbsoluteFileFinder.addSourcePaths(AbsoluteFileFinder.java:20)
      at hudson.plugins.violations.types.pep8.Pep8Parser.parse(Pep8Parser.java:51)
      at hudson.plugins.warnings.parser.ViolationsAdapter.parse(ViolationsAdapter.java:60)
      at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:322)
      at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:301)
      at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:352)
      at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:278)
      at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:329)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
      at hudson.model.Build$RunnerImpl.post2(Build.java:162)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
      at hudson.model.Run.run(Run.java:1463)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)
      Finished: FAILURE

      Attachments

        Activity

          shish Shish Moom created issue -
          shish Shish Moom added a comment -

          ViolationsAdapter.java:60 – parser.parse(model, temp.getParentFile(), temp.getName(), null);

          it's giving the parser "null" for the filename list; perhaps "empty list" would work?

          shish Shish Moom added a comment - ViolationsAdapter.java:60 – parser.parse(model, temp.getParentFile(), temp.getName(), null); it's giving the parser "null" for the filename list; perhaps "empty list" would work?
          drulli Ulli Hafner made changes -
          Field Original Value New Value
          Assignee peterkittreilly [ peterkittreilly ] Ulli Hafner [ drulli ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 146248 ] JNJira + In-Review [ 191841 ]

          People

            drulli Ulli Hafner
            shish Shish Moom
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: