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

[htmlpublusher] failure copying to htmlreports/Vivid_20Results

XMLWordPrintable

      Hello,

      I occasionally see failures where the I see the error below :

      [htmlpublisher] Archiving HTML reports...
      [htmlpublisher] Archiving at BUILD level /blah/html to /blah/htmlreports/Vivid_20Results
      ERROR: Directory '/blah/html' exists but failed copying to '/blah/htmlreports/Vivid_20Results'

      The failure started to happen when the exception below occurred :

      ERROR: Build step failed with exceptionERROR: Build step failed with exceptionjava.lang.NullPointerException at htmlpublisher.HtmlPublisher.publishReports(HtmlPublisher.java:222) at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:186) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:765) at hudson.model.Build$BuildExecution.post2(Build.java:179) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:709) at hudson.model.Run.execute(Run.java:1922) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442)Build step 'Publish HTML reports' marked build as failureEmail was triggered for: Failure - AnySending email for trigger: Failure - AnySending email to: #1c163823.synopsys.onmicrosoft.com@amer.teams.msERROR: Could not send email as a part of the post-build publishers.java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:808) at hudson.plugins.emailext.plugins.EmailTrigger.getDescriptor(EmailTrigger.java:127) at hudson.plugins.emailext.ExtendedEmailPublisher.getRuntimeMacros(ExtendedEmailPublisher.java:628) at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(ExtendedEmailPublisher.java:645) at hudson.plugins.emailext.ExtendedEmailPublisher.executePostsendScript(ExtendedEmailPublisher.java:639) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:601) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:444) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:354) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:765) at hudson.model.Build$BuildExecution.cleanUp(Build.java:189) at hudson.model.Run.execute(Run.java:1944) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442)ERROR: Build step failed with exceptionjava.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:808) at hudson.plugins.emailext.ExtendedEmailPublisher.getDescriptor(ExtendedEmailPublisher.java:1117) at hudson.plugins.emailext.ExtendedEmailPublisher.debug(ExtendedEmailPublisher.java:336) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:622) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:444) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:354) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:765) at hudson.model.Build$BuildExecution.cleanUp(Build.java:189) at hudson.model.Run.execute(Run.java:1944) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442)ERROR: Post-build steps failedjava.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:808) at hudson.plugins.emailext.ExtendedEmailPublisher.getDescriptor(ExtendedEmailPublisher.java:1117) at hudson.plugins.emailext.ExtendedEmailPublisher.getDescriptor(ExtendedEmailPublisher.java:102) at hudson.model.AbstractBuild$AbstractBuildExecution.reportError(AbstractBuild.java:784) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:773) at hudson.model.Build$BuildExecution.cleanUp(Build.java:189) at hudson.model.Run.execute(Run.java:1944) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442)FATAL: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.java.lang.IllegalStateException: Jenkins.instance is missing. Read the documentation of Jenkins.getInstanceOrNull to see what you are doing wrong. at jenkins.model.Jenkins.get(Jenkins.java:808) at hudson.tasks.BuildTrigger.execute(BuildTrigger.java:260) at hudson.model.AbstractBuild$AbstractBuildExecution.cleanUp(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.cleanUp(Build.java:194) at hudson.model.Run.execute(Run.java:1944) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442)Finished: FAILURE

      The above exception occurred at build 76, build 75 was ok and build 77 has below :

       

      [htmlpublisher] Archiving HTML reports...
      [htmlpublisher] Archiving at BUILD level /blah/html to /blah/htmlreports/Vivid_20Results
      ERROR: Directory '/blah/html' exists but failed copying to '/blah/htmlreports/Vivid_20Results'

       

      Any ideas what the issue is and is it possible to add more debug information? I've also tried various switches with the htmlpublisher and have had no luck getting anything to work.

       

      Thanks in advance for all help,
      Scot

            r2b2_nz Richard Bywater
            scotmckelvie Scot McKelvie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: