x29a commented on Bug JENKINS-18443

Unfortunately this seems to still occur on Windows 7 host (java version "1.7.0_17") Jenkins v1.544, xUnit 1.78

The build is configured to run without unittests, so there is nothing to parse for xUnit. The build itself ran just fine, but the raised Exception by xUnit marks it as failed.

Config:

<xunit plugin="xunit@1.78">
      <types>
        <CppUnitJunitHudsonTestType>
          <pattern>*UnitTestU.log</pattern>
          <skipNoTestFiles>true</skipNoTestFiles>
          <failIfNotNew>false</failIfNotNew>
          <deleteOutputFiles>true</deleteOutputFiles>
          <stopProcessingIfError>false</stopProcessingIfError>
        </CppUnitJunitHudsonTestType>
        <JUnitType>
          <pattern>*UnittestG.log</pattern>
          <skipNoTestFiles>true</skipNoTestFiles>
          <failIfNotNew>false</failIfNotNew>
          <deleteOutputFiles>true</deleteOutputFiles>
          <stopProcessingIfError>false</stopProcessingIfError>
        </JUnitType>
      </types>
      <thresholds>
        <org.jenkinsci.plugins.xunit.threshold.FailedThreshold>
          <unstableThreshold>1</unstableThreshold>
          <unstableNewThreshold></unstableNewThreshold>
          <failureThreshold></failureThreshold>
          <failureNewThreshold></failureNewThreshold>
        </org.jenkinsci.plugins.xunit.threshold.FailedThreshold>
        <org.jenkinsci.plugins.xunit.threshold.SkippedThreshold>
          <unstableThreshold></unstableThreshold>
          <unstableNewThreshold></unstableNewThreshold>
          <failureThreshold></failureThreshold>
          <failureNewThreshold></failureNewThreshold>
        </org.jenkinsci.plugins.xunit.threshold.SkippedThreshold>
      </thresholds>
      <thresholdMode>1</thresholdMode>
      <extraConfiguration>
        <testTimeMargin>3000</testTimeMargin>
      </extraConfiguration>
    </xunit>

Error:

Archiving artifacts
[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing CppUnit-1.12.1 (default)
[xUnit] [INFO] - [CppUnit-1.12.1 (default)] - No test report file(s) were found with the pattern '*UnitTestU.log' relative to 'e:\jenkins\workspace\build' for the testing framework 'CppUnit-1.12.1 (default)'.  Did you enter a pattern relative to the correct directory?  Did you generate the result report(s) for 'CppUnit-1.12.1 (default)'?
[xUnit] [WARNING] - No test reports found for the metric 'CppUnit' with the resolved pattern '*UnitTestU.log'.
ERROR: Publisher org.jenkinsci.plugins.xunit.XUnitPublisher aborted due to exception
java.lang.InterruptedException: org.jenkinsci.plugins.xunit.SkipTestException
	at hudson.FilePath.act(FilePath.java:905)
	at hudson.FilePath.act(FilePath.java:887)
	at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:111)
	at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:54)
	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:88)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757)
	at hudson.model.Build$BuildExecution.post2(Build.java:183)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
	at hudson.model.Run.execute(Run.java:1703)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)
Caused by: hudson.FilePath$TunneledInterruptedException: org.jenkinsci.plugins.xunit.SkipTestException
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2463)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:328)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	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:63)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.jenkinsci.plugins.xunit.SkipTestException
	at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:142)
	at org.jenkinsci.plugins.xunit.service.XUnitTransformer.invoke(XUnitTransformer.java:17)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2461)
	... 10 more
Finished: FAILURE

Checking the code on github i found the exception beeing thrown in

https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/service/XUnitTransformer.java

and the problem seems to be that the exception is inheriting from "InterruptedException" here

https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/SkipTestException.java

which jenkins will fail on apperantly :/

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to