UiPathTest does not define or inherit an implementation of the resolved method abstract isSkipOldReports()Z of interface hudson.tasks.junit.JUnitTask

We are trying to build the CI/CD Pipelines using the Jenkins plugin.

It works perfectly except for the UiPathTest throwing error even if the test cases are successful and they are good at UiPath Orchestrator.

Testing the workflow…

[Pipeline] UiPathTest
Expected plugin jar path on Jenkins master: C:\ProgramData\Jenkins.jenkins\plugins\uipath-automation-package\WEB-INF\lib\uipath-automation-package.jar, extracting…
Extracting cli to temp folder C:\ProgramData\Jenkins.jenkins\workspace\UiPathJenkinsDevOps_development@tmp…done!
[net461] $ C:\ProgramData\Jenkins.jenkins\workspace\UiPathJenkinsDevOps_development@tmp\cli-1.0.8136.25036\lib\net461\uipcli.exe run C:\ProgramData\Jenkins.jenkins\workspace\UiPathJenkinsDevOps_development@tmp\uipcliargs6910797158927718544
Running tests in set UiPathJenkinsDevOps_Tests on https://cloud.uipath.com/ (tenant DEV) with a timeout of 10000 seconds…
Starting test set run for UiPathJenkinsDevOps_Tests…
Started test set UiPathJenkinsDevOps_Tests with execution id 30879.
Running tests… 0 passed, 0 failed or canceled, 1 total. Waiting for 20s.
Running tests… 0 passed, 0 failed or canceled, 1 total. Waiting for 20s.
Running tests… 1 passed, 0 failed or canceled, 1 total. Waiting for 20s.
Finished running the test set UiPathJenkinsDevOps_Tests…
Writing test results of type junit to C:\ProgramData\Jenkins.jenkins\workspace\UiPathJenkinsDevOps_development\result.xml…
Recording test results

Here is the error message -

[Pipeline] End of Pipeline
java.lang.AbstractMethodError: Receiver class com.uipath.uipathpackage.UiPathTest does not define or inherit an implementation of the resolved method abstract isSkipOldReports()Z of interface hudson.tasks.junit.JUnitTask.
at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:158)
at hudson.tasks.junit.JUnitResultArchiver.parseAndAttach(JUnitResultArchiver.java:190)
at com.uipath.uipathpackage.UiPathTest.publishTestResults(UiPathTest.java:355)
at com.uipath.uipathpackage.UiPathTest.perform(UiPathTest.java:213)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Finished: FAILURE

1 Like

Have the exact same error. Any conclusion?

It looks like the issue is with writing the test result

Not able to solve it so far…

Starting test set run for UiPathJenkinsDevOps_Tests…

Started test set UiPathJenkinsDevOps_Tests with execution id 31360.

Running tests… 0 passed, 0 failed or canceled, 1 total. Waiting for 20s.

Running tests… 1 passed, 0 failed or canceled, 1 total. Waiting for 20s. Finished running test set UiPathJenkinsDevOps_Tests… Writing test results of type junit to C:\JenkinsRoot\UiPathJenkinsDevOps\development\workspace\result.xml… Recording test results

I have the same opinion.

Probably has to do with the Jenkins version or some pipeline plugin version. An inheritance is missing.

Have you raised an incident in git on the plugin repo?

Yes - I raised it on GitHub - No response so far

The issue seems to originate from a particular JUnit Plugin version. I’ve downgraded to 1.63 and it works.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.