Hi all!

Bigger picture ... When I started with Jenkins shared library, pipelines I 
hit some CPS issues. Since then I was running shared library tests using 
JUnit on 2.152 on Jenkins itself (as part of groovy pipelines).

On recent Jenkins this does not work anymore. Seems like this was removed 
as part of https://issues.jenkins.io/browse/JENKINS-63269

Now in script console executing:

*import groovy.util.GroovyTestCase *throws 
java.lang.ClassNotFoundException: junit.framework.TestCase.

*import groovy.test.GroovyAssert* throws java.lang.ClassNotFoundException: 
org.junit.Assert

Would adding a junit.jar back to jenkins be OK or a terrible hack?

What would be the best way to add this back?

The only way I've managed to achieve this so far was to directly update 
jenkins.war with WEB-INF/lib/junit.jar.

Thank you!

Best regards, B.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/35812ae2-c6f3-4560-a490-ac0ae1766f3an%40googlegroups.com.

Reply via email to