jenkins html publisher: directory exists but failed copying to

前端 未结 2 1245
故里飘歌
故里飘歌 2021-01-04 10:41

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 conf

相关标签:
2条回答
  • 2021-01-04 11:16

    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/ ?

    0 讨论(0)
  • 2021-01-04 11:16

    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

    0 讨论(0)
提交回复
热议问题