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

Violations plugin fails to load pylint result files, throwing an exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • violations-plugin
    • None
    • hudson 1.362, violations plugin 0.7.6

      I checked and the pylint result file is located at alfa/test/pylint.txt and I configured the Violations Plugin to use **/alfa/test/pylint.txt as pyling xml file.

      When you run the job it will fail with the error below.

      I have to mention that "ZenALF.py" is a file from the root of the workspace, but really don't know how the violations plugin managed to create this horrible path, that looks like a concatenation of at least 3 different things.

      ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception
      java.io.FileNotFoundException: C:\.hudson\jobs\alf-ps\builds\2010-09-10_19-28-30\violations\file\C:\.hudson\jobs\alf-ps\workspace\ZenALF.py.xml (The filename, directory name, or volume label syntax is incorrect)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
      at hudson.FilePath.write(FilePath.java:1241)
      at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40)
      at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47)
      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:124)
      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
      at hudson.FilePath.act(FilePath.java:753)
      at hudson.FilePath.act(FilePath.java:735)
      at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
      at hudson.model.Build$RunnerImpl.post2(Build.java:158)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1276)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:124)
      Finished: FAILURE

            peterkittreilly peterkittreilly
            ssbarnea Sorin Sbarnea
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: