[JENKINS-30395] Work around ClosedByInterruptException by checking Thread.interrupted.

This commit is contained in:
Jesse Glick committed 2016-01-04 10:23:31 -05:00
1 parent 9ab3f1d6aa
commit 28bef5f366
1 file changed
+4
@@ -321,6 +321,10 @@ public class JenkinsRule implements TestRule, MethodRule, RootAction {
* @throws Throwable if setup fails (which will disable {@code after}
*/
public void before() throws Throwable {
if (Thread.interrupted()) { // JENKINS-30395
System.err.println("was interrupted before start");
}
if(Functions.isWindows()) {
// JENKINS-4409.
// URLConnection caches handles to jar files by default,