mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
[JENKINS-30395] Work around ClosedByInterruptException by checking Thread.interrupted.
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user