Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin uses wrong path for per-file pep8 xml-reports #36

Open
vglushonkov opened this issue Oct 23, 2013 · 3 comments
Open

Plugin uses wrong path for per-file pep8 xml-reports #36

vglushonkov opened this issue Oct 23, 2013 · 3 comments

Comments

@vglushonkov
Copy link

Working on Windows
Launching pep8 check, it successfully creates XML report, but violations plugin roports error. It seems it uses absolute path somewhere instaed of relative. Please, at least help me to find a direction to look (i downloada the plugin src and trying to find to fix it):

generated xml file: C:\Jenkins\jobs\python-template-2\workspace\reports\pep8.xml
=============== 91 failed, 33 skipped, 1 error in 1.52 seconds ================

C:\Jenkins\jobs\python-template-2\workspace>exit 1
Build step 'Выполнить команду Windows' marked build as failure
ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception
java.io.FileNotFoundException: C:\Jenkins\jobs\python-template-2\builds\2013-10-23_20-03-27\violations\file\C:\Jenkins\jobs\python-template-2\workspace\utilities\capable\admin.py.xml (Syntax error in filename or path)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at hudson.FilePath.write(FilePath.java:1642)
at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:42)
at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:122)
at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:25)
at hudson.FilePath.act(FilePath.java:912)
at hudson.FilePath.act(FilePath.java:885)
at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
at hudson.model.Run.execute(Run.java:1690)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:230)
Finished: FAILURE

@domruf
Copy link

domruf commented May 7, 2014

I had the same problem with pylint
after call pylint with relative paths instead of absolute paths
pylint -f parseable mypackage
instead of
pylint -f parseable c:\path\to\mypackage
it worked.
Hope this helps.

@tomasbjerre
Copy link
Contributor

@iamexe Is this still an issue or can it be closed?

@Tryph
Copy link

Tryph commented Aug 1, 2016

It is still an issue:

C:\dev\compil_environment\jenkins_workspace\collaboar\tests\musketeer\quality\pep8.txt
ERROR: Step ‘Report Violations’ aborted due to exception: 
java.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\musketeer_quality\builds\9\violations\file\C:\dev\compil_environment\jenkins_workspace\collaboar\src\launch_boar_utils.py.xml (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at hudson.FilePath.write(FilePath.java:1879)
    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:122)
    at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:25)
    at hudson.FilePath.act(FilePath.java:990)
    at hudson.FilePath.act(FilePath.java:968)
    at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
    at hudson.model.Build$BuildExecution.post2(Build.java:185)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
    at hudson.model.Run.execute(Run.java:1763)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

Jenkins 1.651.3
Violations 0.7.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants