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: FAILUREAm 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
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
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