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

HTML output directory is incorrect when folderWhereYouRunDoxygen is used

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • doxygen-plugin
    • None

      When the "folder where you run Doxygen" setting is used, the HTML_OUTPUT setting in the Doxyfile is interpreted relative to that location, instead of being relative to the OUTPUT_DIRECTORY setting (which itself is relative to the folderWhereYouRunDoxygen). This causes publication of the generated documentation to fail.

          [JENKINS-18154] HTML output directory is incorrect when folderWhereYouRunDoxygen is used

          Kieron Briggs created issue -

          Kieron Briggs added a comment -

          Kieron Briggs added a comment - Patch submission: https://github.com/jenkinsci/doxygen-plugin/pull/5
          Kieron Briggs made changes -
          Assignee Original: Kieron Briggs [ kbriggs ] New: Gregory Boissinot [ gbois ]

          Code changed in jenkins
          User: Kieron Briggs
          Path:
          src/main/java/hudson/plugins/doxygen/DoxygenDirectoryParser.java
          src/test/java/hudson/plugins/doxygen/DoxygenArchiverTest.java
          http://jenkins-ci.org/commit/doxygen-plugin/b5cf9da892100519873bbad5911659d1f3c6e672
          Log:
          JENKINS-18154 Use correct HTML output with folderWhereYouRunDoxygen

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kieron Briggs Path: src/main/java/hudson/plugins/doxygen/DoxygenDirectoryParser.java src/test/java/hudson/plugins/doxygen/DoxygenArchiverTest.java http://jenkins-ci.org/commit/doxygen-plugin/b5cf9da892100519873bbad5911659d1f3c6e672 Log: JENKINS-18154 Use correct HTML output with folderWhereYouRunDoxygen

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/hudson/plugins/doxygen/DoxygenDirectoryParser.java
          src/test/java/hudson/plugins/doxygen/DoxygenArchiverTest.java
          http://jenkins-ci.org/commit/doxygen-plugin/8a61bf917a5b9fe9cd669d4fcdc3966965e4198c
          Log:
          Merge pull request #5 from kbriggs/bugfix-JENKINS-18154

          JENKINS-18154 Use correct HTML output with folderWhereYouRunDoxygen

          Compare: https://github.com/jenkinsci/doxygen-plugin/compare/e05b4e9fdc8c...8a61bf917a5b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/hudson/plugins/doxygen/DoxygenDirectoryParser.java src/test/java/hudson/plugins/doxygen/DoxygenArchiverTest.java http://jenkins-ci.org/commit/doxygen-plugin/8a61bf917a5b9fe9cd669d4fcdc3966965e4198c Log: Merge pull request #5 from kbriggs/bugfix- JENKINS-18154 JENKINS-18154 Use correct HTML output with folderWhereYouRunDoxygen Compare: https://github.com/jenkinsci/doxygen-plugin/compare/e05b4e9fdc8c...8a61bf917a5b
          Gregory Boissinot made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Gavin Swanson added a comment -

          This was the only thing listed as changed between 0.11 and 0.12 The 0.12 version broke our build.

          Publishing Doxygen HTML results.
          FATAL: error
          hudson.AbortException: The output directory doesn't exist.
          at hudson.plugins.doxygen.DoxygenDirectoryParser.retrieveDoxygenDirectoryFromDoxyfile(DoxygenDirectoryParser.java:350)
          at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:53)
          at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:14)
          at hudson.FilePath.act(FilePath.java:905)
          at hudson.FilePath.act(FilePath.java:878)
          at hudson.plugins.doxygen.DoxygenArchiver._perform(DoxygenArchiver.java:219)
          at hudson.plugins.doxygen.DoxygenArchiver.perform(DoxygenArchiver.java:176)
          at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
          at hudson.model.Run.execute(Run.java:1601)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:241)
          Build step 'Publish Doxygen' changed build result to FAILURE

          Gavin Swanson added a comment - This was the only thing listed as changed between 0.11 and 0.12 The 0.12 version broke our build. Publishing Doxygen HTML results. FATAL: error hudson.AbortException: The output directory doesn't exist. at hudson.plugins.doxygen.DoxygenDirectoryParser.retrieveDoxygenDirectoryFromDoxyfile(DoxygenDirectoryParser.java:350) at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:53) at hudson.plugins.doxygen.DoxygenDirectoryParser.invoke(DoxygenDirectoryParser.java:14) at hudson.FilePath.act(FilePath.java:905) at hudson.FilePath.act(FilePath.java:878) at hudson.plugins.doxygen.DoxygenArchiver._perform(DoxygenArchiver.java:219) at hudson.plugins.doxygen.DoxygenArchiver.perform(DoxygenArchiver.java:176) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) at hudson.model.Run.execute(Run.java:1601) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) Build step 'Publish Doxygen' changed build result to FAILURE
          Gavin Swanson made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Kieron Briggs added a comment -

          Gavin, are you able to share your full Doxygen post-build task configuration, and the OUTPUT_DIRECTORY and HTML_OUTPUT lines from the Doxyfile? It's possible my patch didn't cover all possible combinations. 

          Kieron Briggs added a comment - Gavin, are you able to share your full Doxygen post-build task configuration, and the OUTPUT_DIRECTORY and HTML_OUTPUT lines from the Doxyfile? It's possible my patch didn't cover all possible combinations. 

          Gavin Swanson added a comment -

          Publish Doxygen

          Doxyfile path Documentation/config.doxyfile
          Retain doxygen generation for each successful build Not Checked
          Folder from which doxygen is run Documentation

          OUTPUT_DIRECTORY = .
          HTML_OUTPUT = html

          I would imagine it's choking on the html directory not existing. Maybe add a check that the directory exists and create it if not?

          Gavin Swanson added a comment - Publish Doxygen Doxyfile path Documentation/config.doxyfile Retain doxygen generation for each successful build Not Checked Folder from which doxygen is run Documentation OUTPUT_DIRECTORY = . HTML_OUTPUT = html I would imagine it's choking on the html directory not existing. Maybe add a check that the directory exists and create it if not?

            gbois Gregory Boissinot
            kbriggs Kieron Briggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: