Quantcast

[JIRA] (JENKINS-14762) Cobertura writes to source files (erasing contents in most cases)

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14762) Cobertura writes to source files (erasing contents in most cases)

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Assignee: stephenconnolly
Components: cobertura
Created: 10/Aug/12 10:16 AM
Description:

I'm running Cobertura on a C++ project using a coverage.xml file generated by gcovr. After the plugin has run all the source files have been erased (the files are still present in the source tree but they have no contents).

To check that it was Cobertura plugin that was causing this I write-protected one of the files (atlas_wrapper.cc) before running the Jenkins build. The following is the error from the Jenkins log file...

Publishing Cobertura coverage report...
Publishing Cobertura coverage results...
ERROR: ERROR: Failure to paint ./var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc to /var/lib/jenkins/jobs/atlas/cobertura
java.io.FileNotFoundException: /var/lib/jenkins/jobs/atlas/workspace/atlas/src/Wrapper/atlas_wrapper.cc (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
at hudson.FilePath.write(FilePath.java:1474)
at hudson.plugins.cobertura.renderers.SourceCodePainter.paintSourceCode(SourceCodePainter.java:62)
at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:148)
at hudson.plugins.cobertura.renderers.SourceCodePainter.invoke(SourceCodePainter.java:34)
at hudson.FilePath.act(FilePath.java:842)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:310)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
at hudson.model.Run.execute(Run.java:1513)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Publishing Doxygen HTML results.
The determined Doxygen directory is '/var/lib/jenkins/jobs/atlas/workspace/bld/doc/html'.
End publishing Doxygen HTML results.
Recording test results

Here "/var/lib/jenkins/jobs/atlas/workspace/atlas" is the source tree from the subversion checkout. The coverage.xml file is a soft-link from

/var/lib/jenkins/jobs/atlas/workspace/atlas/coverage.xml -> /var/lib/jenkins/jobs/atlas/workspace/bld/results/coverage.xml

The build tree workspace/bld is separate from the source tree (if that matters).

Environment: CentOS6.2
Jenkins 1.476
Cobertura 1.5
Project: Jenkins
Priority: Critical Critical
Reporter: Tony Hart
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14762) Cobertura writes to source files (erasing contents in most cases)

JIRA noreply@jenkins-ci.org
Tony Hart commented on Bug JENKINS-14762

Any thoughts on what might be going on with this ?

Cobertura is a great plugin I'd like to be able to use it.

thanks,

tony

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14762) Cobertura writes to source files (erasing contents in most cases)

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
 
Szilárd Pfeiffer edited a comment on Bug JENKINS-14762

Same bug for me. Unable to use this great plugin.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14762) Cobertura writes to source files (erasing contents in most cases)

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Same bug for me. Unable to this great plugin.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14762) Cobertura writes to source files (erasing contents in most cases)

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

The same for me. It looks like plugin discards content for all files which are present in coverage report. (Bad open file flag??)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...