Hello
After a long time of debugging my plugin and couldn't find a solution, I 
decided to create a new "clean" plugin and try to reproduce the exception.
My project runs on Jenkins version 1.642.3, contain pom with only 1 dependency: 
    <dependency>
      <groupId>org.jenkins-ci.plugins.workflow</groupId>
      <artifactId>workflow-aggregator</artifactId>
      <version>2.2</version>
      <optional>true</optional>
    </dependency>

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!


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/05a97f1b-2b2a-4100-9871-b84080d75ba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to