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

Jenkins 2.51 breaks XUnitPublisher step in Pipeline

XMLWordPrintable

      After upgrading Jenkins from 2.50 to 2.51 the XUnitPublisher step in a Jenkins Pipeline breaks when executed on a Windows slave:

       

      java.io.IOException: remote file operation failed: E:\jenkins2\workspace\1-Y2TZNVJGGX at hudson.remoting.Channel@4ac0df38:Channel to /10.x.x.x: java.io.IOException: Remote call on Channel to /10.x.x.x failed
      	at hudson.FilePath.act(FilePath.java:992)
      	at hudson.FilePath.act(FilePath.java:974)
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:145)
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:88)
      	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:142)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:78)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:65)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
      	at hudson.security.ACL.impersonate(ACL.java:260)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: Remote call on Channel to /10.x.x.x failed
      	at hudson.remoting.Channel.call(Channel.java:838)
      	at hudson.FilePath.act(FilePath.java:985)
      	... 14 more
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins
      	at hudson.ExtensionList.lookup(ExtensionList.java:416)
      	at hudson.FilePath.act(FilePath.java:982)
      	at hudson.FilePath.act(FilePath.java:974)
      	at hudson.FilePath.exists(FilePath.java:1439)
      	at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convertInputMetricXSL(XUnitConversionService.java:105)
      	at org.jenkinsci.plugins.xunit.service.XUnitConversionService.convert(XUnitConversionService.java:79)
      	at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:146)
      	at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:44)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2731)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      	at hudson.remoting.Request$2.run(Request.java:332)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at hudson.remoting.Engine$1$1.run(Engine.java:90)
      	at java.lang.Thread.run(Unknown Source)
      	at ......remote call to Channel to /10.x.x.x(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
      	at hudson.remoting.Channel.call(Channel.java:830)
      	... 15 more
      Finished: FAILURE
      

      The corresponding pipeline step is:

      step([$class: 'XUnitPublisher', testTimeMargin: '3000', thresholdMode: 1,
      thresholds: [
      [$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '',
      unstableNewThreshold: '', unstableThreshold: ''],
      [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '',
      unstableNewThreshold: '', unstableThreshold: '']],
      tools: [
      [$class: 'CTestType', deleteOutputFiles: true, failIfNotNew: true, pattern:
      "${ctestPattern}", skipNoTestFiles: true, stopProcessingIfError: true],
      [$class: 'GoogleTestType', deleteOutputFiles: true, failIfNotNew: true, pattern:
      "${gtestPattern}", skipNoTestFiles: true, stopProcessingIfError: true]]
      ])
      

      After downgrading to 2.50 everything is fine again.

            gbois Gregory Boissinot
            bilke Lars Bilke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: