• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • junit-plugin
    • None
    • Jenkins 1.582 running as a service on Windows7, building on Slaves also running as services on Windows7 machines.

      JUnit Plugin 1.1

      Stack trace has certain elements replaced with <generic terms>

      ERROR: Failed to archive test reports
      java.io.IOException: remote file operation failed: c:\jenkins_slave\workspace\<Job Name> at hudson.remoting.Channel@3c0156a0:<Machine Name>
      at hudson.FilePath.act(FilePath.java:914)
      at hudson.FilePath.act(FilePath.java:896)
      at hudson.tasks.junit.JUnitParser.parse(JUnitParser.java:87)
      at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:129)
      at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:141)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      at hudson.model.Run.execute(Run.java:1770)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

      Reverting to pre 1.577 version (ie before JUnit was split out to a plugin) fault does not occur

          [JENKINS-24946] JUnit Tests Results fail to archive in V1.582

          Daniel Beck added a comment -

          Is there anything else logged? In the build log? The jenkins log?

          Daniel Beck added a comment - Is there anything else logged? In the build log? The jenkins log?

          Thanks for your response Daniel.

          Sadly, nothing out of the ordinary, which I do realise is very unhelpful. If you could suggest where I might look, I can scan the logs in more detail looking for specific tell-tale signs, but when I diff the logs from a build success with these build failures, aside from dates and paths etc, they are the same until the archive unit tests portion. What I can tell you is that the build artifacts are all correct and the unit tests run happily, it is only when they are to be archived the job fails.

          I checked the folder which the unit tests write the XML files to, it is correct.
          I checked all of the XMLs themselves, they are well formed.
          I checked the path given for the archiving of the test results, it matches where they are

          I downgraded Jenkins back to a previous version before JUnit was split out to a plugin, and the job script executes without issue. Happy to provide any further details in order to help track this issue down.

          Duncan Shepherd added a comment - Thanks for your response Daniel. Sadly, nothing out of the ordinary, which I do realise is very unhelpful. If you could suggest where I might look, I can scan the logs in more detail looking for specific tell-tale signs, but when I diff the logs from a build success with these build failures, aside from dates and paths etc, they are the same until the archive unit tests portion. What I can tell you is that the build artifacts are all correct and the unit tests run happily, it is only when they are to be archived the job fails. I checked the folder which the unit tests write the XML files to, it is correct. I checked all of the XMLs themselves, they are well formed. I checked the path given for the archiving of the test results, it matches where they are I downgraded Jenkins back to a previous version before JUnit was split out to a plugin, and the job script executes without issue. Happy to provide any further details in order to help track this issue down.

          Daniel Beck added a comment -

          Which version of Jenkins did you downgrade to? Could you try pinpointing the version where it breaks? Is it really the one where the plugin was extracted?

          What does the rest of the job configuration look like? Could you try setting up a minimal job that fails (and can be uploaded to allow others to reproduce the problem, i.e. only public or demo/dummy files), e.g. one where the XML file is set up in a batch step instead of compiling? Does it also happen on other Windows slaves? Does it happen when run on master?

          Daniel Beck added a comment - Which version of Jenkins did you downgrade to? Could you try pinpointing the version where it breaks? Is it really the one where the plugin was extracted? What does the rest of the job configuration look like? Could you try setting up a minimal job that fails (and can be uploaded to allow others to reproduce the problem, i.e. only public or demo/dummy files), e.g. one where the XML file is set up in a batch step instead of compiling? Does it also happen on other Windows slaves? Does it happen when run on master?

          Waldek M added a comment - - edited

          Similar issue with 1.3 Junit plugin, Jenkins 1.586.
          Reverting to Junit 1.1 solved it.

          Recording test results
          ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
          java.lang.NoClassDefFoundError: hudson/tasks/junit/JUnitParser$ParseResultCallable
          	at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:90)
          	at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:120)
          	at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:137)
          	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
          	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
          	at hudson.model.Build$BuildExecution.post2(Build.java:183)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
          	at hudson.model.Run.execute(Run.java:1784)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          	at hudson.model.ResourceController.execute(ResourceController.java:89)
          	at hudson.model.Executor.run(Executor.java:240)
          

          Waldek M added a comment - - edited Similar issue with 1.3 Junit plugin, Jenkins 1.586. Reverting to Junit 1.1 solved it. Recording test results ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception java.lang.NoClassDefFoundError: hudson/tasks/junit/JUnitParser$ParseResultCallable at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:90) at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:120) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:137) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

          Waldek M added a comment -

          Updated severity - actually, Junit plugin 1.3 is a complete blocker of the whole Jenkins instance.

          Waldek M added a comment - Updated severity - actually, Junit plugin 1.3 is a complete blocker of the whole Jenkins instance.

          Daniel Beck added a comment -

          To clarify, downgrading to 1.1 works? What about 1.2?

          Daniel Beck added a comment - To clarify, downgrading to 1.1 works? What about 1.2?

          Daniel Beck added a comment -

          Note that JUnit plugin 1.3 is incompatible with Jenkins before 1.587. See comment to JENKINS-26060 for an explanation.

          Daniel Beck added a comment - Note that JUnit plugin 1.3 is incompatible with Jenkins before 1.587. See comment to JENKINS-26060 for an explanation.

          Waldek M added a comment -

          I see. Yes, probably version of core might be the issue. I did upgrade to the latest core, however that one contains another critical bug (related to losing slave restrictions in a job), so I had to revert.

          I missed the upgrade to 1.2, so can't confirm.
          I can see a similar https://issues.jenkins-ci.org/browse/JENKINS-25657

          Waldek M added a comment - I see. Yes, probably version of core might be the issue. I did upgrade to the latest core, however that one contains another critical bug (related to losing slave restrictions in a job), so I had to revert. I missed the upgrade to 1.2, so can't confirm. I can see a similar https://issues.jenkins-ci.org/browse/JENKINS-25657

          Simon C added a comment -

          @DanielBeck: I can confirm that downgrading to 1.2 also works.

          Simon C added a comment - @DanielBeck: I can confirm that downgrading to 1.2 also works.

          sridhar matsa added a comment -

          Can anyone let me know what is the plugins for PRPC build automation

          sridhar matsa added a comment - Can anyone let me know what is the plugins for PRPC build automation

          Mark Waite added a comment - - edited

          sridharbbl please use the Jenkins mailing list for questions rather than posting a question to an unrelated bug report.

          Mark Waite added a comment - - edited sridharbbl please use the Jenkins mailing list for questions rather than posting a question to an unrelated bug report.

          Daniel Beck added a comment -

          Alright, resolving this as Cannot Reproduce as upgrading from 1.1 to 1.2 seems like a viable solution. 1.3 has the incompatibility problem but that's inherent in the current dependency declaration / LTS versioning, so please look the other way

          (Also, weekly releases are only considered supported for a week, which means if you're still running 1.594 or 1.595, you're on your own )

          Daniel Beck added a comment - Alright, resolving this as Cannot Reproduce as upgrading from 1.1 to 1.2 seems like a viable solution. 1.3 has the incompatibility problem but that's inherent in the current dependency declaration / LTS versioning, so please look the other way (Also, weekly releases are only considered supported for a week, which means if you're still running 1.594 or 1.595, you're on your own )

          Encountered this problem on 1.583 when installing v1.3 of jUnit. Tried v1.4, same result. Manually resinstalled v1.2 works. The problem is still in there somewhere ...
          Archiving artifacts
          Recording test results
          ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception
          java.lang.NoClassDefFoundError: hudson/tasks/junit/JUnitParser$ParseResultCallable
          at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:90)
          at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:120)
          at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:137)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
          at hudson.model.Build$BuildExecution.post2(Build.java:183)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
          at hudson.model.Run.execute(Run.java:1770)
          at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
          at hudson.model.ResourceController.execute(ResourceController.java:89)
          at hudson.model.Executor.run(Executor.java:240)

          Kent Granström added a comment - Encountered this problem on 1.583 when installing v1.3 of jUnit. Tried v1.4, same result. Manually resinstalled v1.2 works. The problem is still in there somewhere ... Archiving artifacts Recording test results ERROR: Publisher hudson.tasks.junit.JUnitResultArchiver aborted due to exception java.lang.NoClassDefFoundError: hudson/tasks/junit/JUnitParser$ParseResultCallable at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:90) at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:120) at hudson.tasks.junit.JUnitResultArchiver.perform(JUnitResultArchiver.java:137) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1770) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

          Waldek M added a comment -

          You may want to upgrade core version.
          I was on 1.586 and upgrade finally solved it for me, as advised by Daniel Beck above.

          Waldek M added a comment - You may want to upgrade core version. I was on 1.586 and upgrade finally solved it for me, as advised by Daniel Beck above.

          Silly me
          RTFM before writing...
          Thanx Waldek M

          Kent Granström added a comment - Silly me RTFM before writing... Thanx Waldek M

          Reverting issue to its previous state since it is explained in the comments why it doesn't work with 1.583.

          The release-notes for the plugin however should perhaps state the incompatibility even though it is compatible with later versions of Jenkins.

          Kent Granström added a comment - Reverting issue to its previous state since it is explained in the comments why it doesn't work with 1.583. The release-notes for the plugin however should perhaps state the incompatibility even though it is compatible with later versions of Jenkins.

            Unassigned Unassigned
            d_shepherd Duncan Shepherd
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: