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

Publish HTML Plugin is not showing the reports generated in jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • htmlpublisher-plugin
    • None
    • Linux

      ๐Ÿ–ฅ๏ธ Environment

      Key Value
      Jenkins Version 2.517
      OS Ubuntu 22.04.4 LTS (64-bit), kernel 6.8.0-1029-aws
      Java Version OpenJDK 21.0.7 (64-bit), Vendor: Ubuntu
      HTML Publisher Plugin Version 425
      Jenkins Install Method apt package
      Running via jenkins.war executable (/usr/share/java/jenkins.war)
      Reverse Proxy Yes, Nginx (reverse proxy in front of Jenkins)
      ZAP Plugins Installed zap, zap-pipeline, zapper
      Browser Used Google Chrome (latest stable)

      ย 


      ๐Ÿ“ Relevant Plugins (Partial List)

      • htmlpublisher:425
      • workflow-aggregator
      • workflow-basic-steps
      • workflow-cps
      • workflow-durable-task-step
      • zap:1.1.0
      • zap-pipeline:1.16
      • zapper:1.0.7

      โš™๏ธ Jenkins Script Console Output

      ย 
      groovy
      CopyEdit
      println("Java: ${System.getProperty('java.version')} - ${System.getProperty('java.vm.vendor')} (${System.getProperty('java.vm.name')})")

      Java: 21.0.7 - Ubuntu (OpenJDK 64-Bit Server VM)


      โš™๏ธ Steps to Reproduce

      1. Install the HTML Publisher Plugin (htmlpublisher:425).
      1. Configure a Freestyle or Pipeline project.
      1. Run ZAP scan and generate an HTML report at ${WORKSPACE}/zap-reports/zap_report.html.
      1. Add HTML Publisher post-build action:
        • HTML directory to archive: zap-reports
        • Index page[s]: zap_report.html
        • Report title: ZAP Report
      1. Run the job and observe the result.

      ๐Ÿ“„ Expected Behavior

      After build completion:

      • A "ZAP Report" link should appear on the build page.
      • Clicking the link should display the HTML content from zap_report.html.

      ๐Ÿงจ Actual Behavior

      • No report link appears on the build or job page.
      • No error is shown in the UI.
      • The zap-reports/zap_report.html file exists in the workspace after build (verified).

      ๐Ÿชต Console Output

      ย 
      css
      CopyEdit
      [htmlpublisher] Archiving HTML reports...[htmlpublisher] Archiving at BUILD level /var/lib/jenkins/workspace/zap-job/zap-reports/zap_report.htmlFinished: SUCCESS
      Despite the message above, no HTML link appears on the Jenkins build page.


      ๐Ÿ” Things I've Verified

      • File exists and is readable: โœ…
      • Correct directory and file name used: โœ…
      • Jenkins is using a reverse proxy (nginx): โœ…
      • Browser cache cleared and tested in multiple browsers: โœ…
      • Jenkins and plugin versions up to date as of July 2025: โœ…
      • Tried regenerating the workspace and rerunning: โœ…
      • No known error or warning in system log: โœ…

      ๐Ÿงช Troubleshooting Attempted

      • Created a minimal job with only HTML Publisher step โ†’ same result.
      • Verified ownership/permissions of workspace files.
      • Tested with other HTML reports โ€” same behavior.
      • Checked Nginx reverse proxy rules โ€” no blocking or rewriting of report URLs.

      ๐Ÿ’ฌ Additional Info

      • A fresh install of Jenkins was used.
      • System locale: en, UTC timezone
      • Nginx configuration is standard; Jenkins is running on port 8080.

      โ“ Request

      Please advise if:

      • Additional configuration is required post Jenkins 2.500+?
      • The plugin has compatibility issues with OpenJDK 21 or recent Jenkins core versions?
      • This is a known issue or regression in plugin version 425.

            r2b2_nz Richard Bywater
            ashin_2bs Ashin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: