And a simple test that use a JenkinsRule.
I get this exception while Im trying to run the test: "clean test -DskipTests=false -Dtest=myTest" (but it runs perfectly on regular run, e.g hpi:run -Djetty.port=9192)
java.lang.InstantiationException: java.lang.NoClassDefFoundError: org/jenkinsci/main/modules/sshd/SshCommandFactory
at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666)
at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:382)
*i don't get this exception without workflow-aggregator dependency.
Any ideas?
thanks!