-
Bug
-
Resolution: Unresolved
-
Blocker
-
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
- Install the HTML Publisher Plugin (htmlpublisher:425).
- Configure a Freestyle or Pipeline project.
- Run ZAP scan and generate an HTML report at ${WORKSPACE}/zap-reports/zap_report.html.
- Add HTML Publisher post-build action:
-
- HTML directory to archive: zap-reports
-
- Index page[s]: zap_report.html
-
- Report title: ZAP Report
- 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.