Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-30395] Work around ClosedByInterruptException by checking Th…
…read.interrupted.

Originally-Committed-As: 28bef5f366c2ebf6efdb4a71c920fe1d8bb28d3e
  • Loading branch information
jglick committed Jan 4, 2016
1 parent 746f72e commit 4d7ef4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/src/main/java/org/jvnet/hudson/test/JenkinsRule.java
Expand Up @@ -321,6 +321,10 @@ public Jenkins getInstance() {
* @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,
Expand Down

0 comments on commit 4d7ef4b

Please sign in to comment.