jenkinsci / cucumber-reports-plugin

Jenkins plugin to generate cucumber-jvm reports
https://plugins.jenkins.io/cucumber-reports/
GNU Lesser General Public License v2.1
210 stars 232 forks source link

CannotResolveClassException: CucumberReportBuildAction #74

Closed lemrouch closed 8 years ago

lemrouch commented 8 years ago

Hi, we tried to upgrade cucumber-report-plugin from 2.2.0 to 2.6.3 and we ended with CannotResolveClassException: CucumberReportBuildAction in our old builds and the Cucumber-JVM reports link was not working. Downgrade of the plugin fixed it. There was nothing in the jenkins log. Does anybody have idea where might be the problem or how to debug jenkins classloader?

lemrouch commented 8 years ago

I tried to install the latest working version and it's fine up to 2.5.1. Version 2.6.0 is the first one which is not working.

lemrouch commented 8 years ago

In the XML files of old builds is net.masterthought.jenkins.CucumberReportBuildAction plugin="cucumber-reports@2.2.0" and I can see in https://github.com/jenkinsci/cucumber-reports-plugin/compare/cucumber-reports-2.5.1...cucumber-reports-2.6.0 that the src/main/java/net/masterthought/jenkins/CucumberReportBuildAction.java has been removed. How can I fix this?

damianszczepanik commented 8 years ago

Problem with Jenkins compatibility? I have tested with the most recent version but also with older installations.

lemrouch commented 8 years ago

Hi, to be clear: fresh build with 2.6.3 plugin has working report. But I just can't see reports from builds done with plugin 2.5.1 or older. Can you try to downgrade plugin to 2.5.1, run build, upgrade plugin to 2.6.3 and confirm you can see the report please? I think cucumber-reports-plugin is not backward compatible.

We have latest Jenking debian package from official repository.

lemrouch commented 8 years ago

The exception can bee seen in jeninks web /administrativeMonitor/OldData/manage

Unreadable Data

It is acceptable to leave unreadable data in these files, as Jenkins will safely ignore it. To avoid the log messages at Jenkins startup you can permanently delete the unreadable data by resaving these files using the button below. Type Name Error hudson.model.FreeStyleBuild features-tests #3125 CannotResolveClassException: net.masterthought.jenkins.CucumberReportBuildAction

lemrouch commented 8 years ago

And strange thing: I reverted back from 2.6.3 to 2.5.1 and I can see the latest report but old reports are not available.

damianszczepanik commented 8 years ago

Duplicate of damianszczepanik/cucumber-reporting-jenkins#162

lemrouch commented 8 years ago

Ah, sorry. I missed the #162 bug. Feel free to close this one as well. Or keep it open so others won't open any more duplicates. Thanks for your time and effort!