Details
-
Bug
-
Status: Reopened (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
Windows 7 slave
Description
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:
Regarding the "The output directory doesn't exist" failure:
It seems that the plugin assumes that the working directory of doxygen is the root folder of the workspace. Thus, the plugin tries to resolve all relative paths based on the root folder of the workspace.
If you are like me, and your doxygen working directory is not the root folder of the workspace, then you need a workaround. I usually use one of these:
A suggestion: Perhaps an input field could be added to the plugin configuration, expecting the doxygen working directory.