title: 'junit-jupiter' failed to discover tests when using rerunner-jupiter extension in Jenkins
body: <p>I am trying to repeat selected tests if they fail using <a href="https://github.com/artsok/rerunner-jupiter" rel="nofollow noreferrer">rerunner-jupiter</a> extension. It works fine inside IntelliJ IDEA but fails on Jenkins with this message,</p>
  
  <pre><code>org.junit.platform.launcher.core.DefaultLauncher handleThrowable
  
  WARNING: TestEngine with ID 'junit-jupiter' failed to discover tests
  java.lang.NoSuchMethodError: org.junit.platform.engine.support.filter.ClasspathScanningSupport.buildClassFilter(Lorg/junit/platform/engine/EngineDiscoveryRequest;Ljava/util/function/Predicate;)Lorg/junit/platform/commons/util/ClassFilter;
      at org.junit.jupiter.engine.discovery.DiscoverySelectorResolver.resolveSelectors(DiscoverySelectorResolver.java:49)
      at org.junit.jupiter.engine.JupiterTestEngine.discover(JupiterTestEngine.java:61)
      at org.junit.platform.launcher.core.DefaultLauncher.discoverEngineRoot(DefaultLauncher.java:130)
      at org.junit.platform.launcher.core.DefaultLauncher.discoverRoot(DefaultLauncher.java:117)
      at org.junit.platform.launcher.core.DefaultLauncher.discover(DefaultLauncher.java:82)
      at org.junit.platform.surefire.provider.TestPlanScannerFilter.accept(TestPlanScannerFilter.java:50)
      at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:98)
      at org.junit.platform.surefire.provider.JUnitPlatformProvider.scanClasspath(JUnitPlatformProvider.java:121)
      at org.junit.platform.surefire.provider.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:111)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
  Jun 28, 2018 3:22:16 AM org.junit.platform.launcher.core.DefaultLauncher handleThrowable
  </code></pre>
  
  <p>No tests are executed at all, whole test suite fails right in the beginning. </p>