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

Doxygen plugin treats path separators in output path incorrectly

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • doxygen-plugin
    • None
    • Windows 7 slave

      For example, if the Doxyfile states:

      OUTPUT_DIRECTORY = build/doc
      

      publishing fails with:

      Publishing Doxygen HTML results.
      FATAL: error
      hudson.AbortException: The directory 'C:\Build\workspace\myProject\build/doc\html' doesn't exist.
      	at hudson.plugins.doxygen.DoxygenDirectoryParser.retrieveDoxygenDirectoryFromDoxyfile(DoxygenDirectoryParser.java:314)
      	at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:65)
      	at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:24)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979)
      	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(Unknown Source)
      	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at hudson.remoting.Engine$1$1.run(Engine.java:59)
      	at java.lang.Thread.run(Unknown Source)
      

      Note the backslash/forward slash confusion in hudson.AbortException.

      The cygwin version of doxygen correctly handles this Doxyfile. I have not tried any other Windows port.

      Similar Issues:

          [JENKINS-9897] Doxygen plugin treats path separators in output path incorrectly

          Hendrik Fuß created issue -
          Gregory Boissinot made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Fixed in repository
          https://github.com/jenkinsci/doxygen-plugin
          Could you test it?

          Gregory Boissinot added a comment - Fixed in repository https://github.com/jenkinsci/doxygen-plugin Could you test it?
          Gregory Boissinot made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Hendrik Fuß added a comment -

          Sorry for the delay. Was offline for a while. Is the fix already contained in the current release?

          Hendrik Fuß added a comment - Sorry for the delay. Was offline for a while. Is the fix already contained in the current release?

          Hendrik Fuß added a comment -

          I've tried 0.9 and it still fails, this time with a different, less
          helpful error message:

          Publishing Doxygen HTML results.
          FATAL: error
          hudson.AbortException: The output directory doesn't exist.
          	at hudson.plugins.doxygen.DoxygenDirectoryParser.retrieveDoxygenDirectoryFromDoxyfile(DoxygenDirectoryParser.java:328)
          	at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:54)
          	at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:14)
          	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979)
          	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(Unknown Source)
          	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          	at java.util.concurrent.FutureTask.run(Unknown Source)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          	at hudson.remoting.Engine$1$1.run(Engine.java:59)
          	at java.lang.Thread.run(Unknown Source)
          

          The Doxyfile is unchanged and contains:

          OUTPUT_DIRECTORY       = build/doc
          

          The directory build/doc does exist in the workspace on the Windows slave that performs the build.

          Hendrik Fuß added a comment - I've tried 0.9 and it still fails, this time with a different, less helpful error message: Publishing Doxygen HTML results. FATAL: error hudson.AbortException: The output directory doesn't exist. at hudson.plugins.doxygen.DoxygenDirectoryParser.retrieveDoxygenDirectoryFromDoxyfile(DoxygenDirectoryParser.java:328) at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:54) at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:14) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1979) 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(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:59) at java.lang.Thread.run(Unknown Source) The Doxyfile is unchanged and contains: OUTPUT_DIRECTORY = build/doc The directory build/doc does exist in the workspace on the Windows slave that performs the build.
          Hendrik Fuß made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Sorry the delay.
          The bug is still active.
          I don't have a suitable environment for reproduce it (such as Windows).
          Additionally, could you attach your Doxyfile?

          Gregory Boissinot added a comment - Sorry the delay. The bug is still active. I don't have a suitable environment for reproduce it (such as Windows). Additionally, could you attach your Doxyfile?
          Hendrik Fuß made changes -
          Attachment New: Doxyfile [ 20626 ]

          Hendrik Fuß added a comment -

          Attached!

          I would love to help with testing. The only problem is I am not set up for building hudson myself and I am not too familiar with the tools. If you can send me binaries of the plugin, I'd be happy to test it if that suits you.

          Hendrik Fuß added a comment - Attached! I would love to help with testing. The only problem is I am not set up for building hudson myself and I am not too familiar with the tools. If you can send me binaries of the plugin, I'd be happy to test it if that suits you.

            gbois Gregory Boissinot
            hendrik Hendrik Fuß
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: