--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/69f79be6-f504-43b4-8088-66a3172b1127%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There are surefire options to let you filter the test classpath
On Sat 29 Apr 2017 at 10:36, Kirill <yam...@gmail.com> wrote:
Hi,--
I wrote a unit test (following guidelines at https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test) to test different usage scenarios of the Swarm 3.4 slaves.
So I used:
- Jenkins test harness 2.21 (the latest one)
- Jenkins core 2.25
- Swarm client v3.4
I wrote the test using @WithPlugin("swarm-3.4.hpi"), which brings up the Swarm slave targeted at jenkins/getrootUrl(), but I get the following error during Jenkins startup:
INFO: Listed all plugins
Apr 29, 2017 10:30:32 AM hudson.ExtensionFinder$Sezpoz scout
WARNING: Failed to scout jenkins.slaves.DefaultJnlpSlaveReceiver
java.lang.NoClassDefFoundError: org/jenkinsci/remoting/engine/JnlpServerHandshake
It appeared that Jenkins 2.25 uses Jenkins remoting v2.62, but Swarm client v3.4 which I use to create slave in my test uses Jenkins remoting v3.4.1, which doesn't have that class. As the Swarm client's library is loaded before Jenkins (and it does, as it's one of the Maven module's dependencies, so gets onto classpath right away), embedded Jenkins started by JenkinsRule gets it as well, neglecting the remoting.jar in its WEB-INF.
If Jenkins would have been started in a JVM separate from the test's JVM, there wouldn't be such problem. Of course, it wouldn't be a unit test then, but the embedded Jenkins is still better to me than a standalone instance.
Maybe another idea would be to use Jenkins acceptance test harness?
Any ideas are welcome! Thanks in advance, folks.
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 jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/69f79be6-f504-43b4-8088-66a3172b1127%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Sent from my phone
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/rEk5FNjd7SU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMxdEaTbVXSTvkJHf%3DXRkbiUbxAQm5FezfC1zwJC69K0Dg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH45hb_Jszs30t4mmKBV5kXgex%3DGdfAN26%3DcaMP10dJnPJp-jA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMwY3L4eVf1VAey3MGEm-R9Zijw3Ku5CAvreuOyZhW8vgg%40mail.gmail.com.
Nope, not me - the developers of Swarm plugin's client (https://github.com/jenkinsci/swarm-plugin/blob/master/client/pom.xml).
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAH45hb9JH%3DLB2sMu0hdtB53P5Gm41eUbQfKdu40_U_TSeGnF2Q%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/rEk5FNjd7SU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3WD6n4drqFqdDbELiL-FOKQf-qcUM3CUTAgKs%2B3%3D_Uxw%40mail.gmail.com.