Build step publish html reports changed build result to failure

I've tried the answer on Jenkins-Job fails but it didn't helped me.

Has anyone any different answer? Jenkins is installed on Ubuntu 12.04 under tomcat. I have configured it to make a build with CVS repository. When i am trying to make a new build it fails due to the below error.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:34.392s
[INFO] Finished at: Mon Aug 19 12:32:14 IST 2013
[INFO] Final Memory: 13M/206M
[INFO] ------------------------------------------------------------------------
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /usr/local/tomcat/webapps/jenkins/jobs/Data_Ingestion_Tool/workspace/DataIngestionTool/target/site/jacoco to /usr/local/tomcat/webapps/jenkins/jobs/Data_Ingestion_Tool/builds/2013-08-19_12-28-39/htmlreports/Jacoco_Coverage_Report
ERROR: Directory '/usr/local/tomcat/webapps/jenkins/jobs/Data_Ingestion_Tool/workspace/DataIngestionTool/target/site/jacoco' exists but failed copying to '/usr/local/tomcat/webapps/jenkins/jobs/Data_Ingestion_Tool/builds/2013-08-19_12-28-39/htmlreports/Jacoco_Coverage_Report'.
ERROR: This is especially strange since your build otherwise succeeded.
Build step 'Publish HTML reports' changed build result to FAILURE
Finished: FAILURE

Am i missing any user permissions?

I've tried giving full read-write access to

/usr/local/tomcat/webapps/jenkins/jobs/Data_Ingestion_Tool/builds/

folder but it still doesn't help :(

i don't know how to give permissions to a logged in jenkins user. Can anybody help me in resolving this issue? Thanks in advance!

asked Aug 19, 2013 at 7:42

2

If you ruled out disk space and permissions, then the problem is probably configuration.

The error comes because the HTML publisher plugin copied 0 files. It could just be that your input configuration was incorrect.

Can you check your worskpace (/usr/local/tomcat/webapps/jenkins/jobs/Data_Ingestion_Tool/workspace/DataIngestionTool/target/site/jacoco) and check that the files you want to copy are under that path ?

If not, what do you have under /usr/local/tomcat/webapps/jenkins/jobs/Data_Ingestion_Tool/builds/2013-08-19_12-28-39/ ?

answered Aug 19, 2013 at 9:45

coffeebreakscoffeebreaks

3,7071 gold badge25 silver badges25 bronze badges

4

In my case misconfiguration of HTML publisher caused the problem

publishHTML([
  allowMissing: false,
  alwaysLinkToLastBuild: false,
  includes: '**/*.png',     <---------------------- this line
  keepAll: true,
  reportDir: 'reports/',
  reportFiles: 'broker_portal_uat_index.html',
  reportName: 'HTML Report',
  reportTitles: 'FH BP'
 ])

Once I changed it includes to includes: '**/*' the problem was gone

answered Jul 9, 2019 at 14:33

Build step publish html reports changed build result to failure

Sergey PleshakovSergey Pleshakov

7,0102 gold badges15 silver badges35 bronze badges

Hi - this issue has been around and not touched for a year or more. In an effort to try and focus on issues which are still present, I am resolving these issues for now.

If you feel that the issue is still present, please feel free to re-open / comment. I'll be closing off any issues that haven't had any re-opening or comments by the end of the month.

Thanks for reporting these issues - hopefully you are still using HTML Publisher and its working for you but, if not, let me know so that I can focus on issues that are causing you problems today

Build step publish html reports changed build result to failure

Hi - this issue has been around and not touched for a year or more. In an effort to try and focus on issues which are still present, I am resolving these issues for now.

If you feel that the issue is still present, please feel free to re-open / comment. I'll be closing off any issues that haven't had any re-opening or comments by the end of the month.

Thanks for reporting these issues - hopefully you are still using HTML Publisher and its working for you but, if not, let me know so that I can focus on issues that are causing you problems today

Build step publish html reports changed build result to failure

How do I publish an HTML report in Jenkins?

in my Jenkins => configure..
going down until "Post-build Actions".
press "add post-build action".
press on "publish HTML report".

How can I see the HTML report in Jenkins?

You need to follow these steps for solution :.
Open the Jenkin home page..
Go to Manage Jenkins..
Now go to Script Console..
In that console paste below line and click on Run. System. setProperty("hudson. model. DirectoryBrowserSupport. CSP", "").
open html-report it will show as expected..

How do I download an HTML report from Jenkins?

Then, configure Jenkins to show the custom report after your builds:.
Go to "Post-build Actions" -> Choose "publish html reports"..
Add your directory where the custom report is, for example: /test-output..
Add the index file under Index page[s], for example: custom-report. html..

What is HTML Publisher Plugin?

The HTML Publisher plugin is useful to publish HTML reports that your build generates to the job and build pages. It is designed to work with both Freestyle projects as well as being used in a Jenkins Pipeline.