未验证 提交 a4a1355f 编写于 作者: O Oleg Nenashev 提交者: GitHub

Merge pull request #3420 from jglick/gradle-plugin-under-test-JENKINS-51062

[JENKINS-51062] Extend ClassFilterImpl.isLocationWhitelisted Maven-oriented exclusions to plugin under test during Gradle builds
......@@ -229,12 +229,12 @@ public class ClassFilterImpl extends ClassFilter {
LOGGER.log(Level.WARNING, "problem checking " + loc, x);
}
}
if (loc.endsWith("/target/classes/")) {
if (loc.endsWith("/target/classes/") || loc.matches(".+/build/classes/[^/]+/main/")) {
LOGGER.log(Level.FINE, "{0} seems to be current plugin classes, OK", loc);
return true;
}
if (Main.isUnitTest) {
if (loc.endsWith("/target/test-classes/") || loc.endsWith("-tests.jar")) {
if (loc.endsWith("/target/test-classes/") || loc.endsWith("-tests.jar") || loc.matches(".+/build/classes/[^/]+/test/")) {
LOGGER.log(Level.FINE, "{0} seems to be test classes, OK", loc);
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册