[JIRA] Created: (HUDSON-6741) IO exception during search for cobertura reports

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-6741) IO exception during search for cobertura reports

Hudson issues mailing list
IO exception during search for cobertura reports
------------------------------------------------

                 Key: HUDSON-6741
                 URL: http://issues.hudson-ci.org/browse/HUDSON-6741
             Project: Hudson
          Issue Type: Bug
          Components: cobertura
         Environment: Hudson 1.359, Cobertura plugin 0.8.11, Java 1.6.0_12-b04
            Reporter: Jdkstb
            Assignee: stephenconnolly


When the Hudson Cobertura plugin is searching for Cobertura reports an IO exception is thrown. This exception occurs because the plugin has no read access to a specific directory but sees it in the directory listening of it's parent dir. In this case '/view/hudson_view/etc/apache2/ssl.key'. The Hudson project is using a dynamic Clearcase view which leads to a search on the complete file system.

The exception that is thrown:
Publishing Cobertura coverage report...
ERROR: Publisher hudson.plugins.cobertura.CoberturaPublisher aborted due to exception
IO error scanning directory '/view/hudson_view/etc/apache2/ssl.key'
        at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1065)
        at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100)
        at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100)
        at org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1100)
        at org.apache.tools.ant.DirectoryScanner.checkIncludePatterns(DirectoryScanner.java:856)
        at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:817)
        at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:435)
        at hudson.FilePath.glob(FilePath.java:1190)
        at hudson.FilePath.access$500(FilePath.java:159)
        at hudson.FilePath$23.invoke(FilePath.java:1169)
        at hudson.FilePath$23.invoke(FilePath.java:1167)
        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
        at hudson.remoting.UserRequest.perform(UserRequest.java:114)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:270)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

Once this exception occurs the plugin will fail the build. In my opinion the plugin should catch this exception and continue searching for report files on the file system in these cases. Probably only log some warning.

This issue is related to http://issues.hudson-ci.org/browse/HUDSON-3862, because if I was able to specify the location where to look for reports. This location wouldn't be included in the path and the exception won't occur.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]