Skip to content

Commit

Permalink
[JENKINS-27208] InterruptedException is catched and relaunched as IOE…
Browse files Browse the repository at this point in the history
…xception
  • Loading branch information
recena committed Sep 29, 2015
1 parent e59455c commit cc2c42e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Expand Up @@ -41,7 +41,7 @@ public class LogParserParser {

public LogParserParser(final FilePath parsingRulesFile,
final boolean preformattedHtml, final VirtualChannel channel)
throws IOException, InterruptedException {
throws IOException {

// init logger
final Logger logger = Logger.getLogger(getClass().getName());
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/hudson/plugins/logparser/LogParserUtils.java
Expand Up @@ -13,9 +13,12 @@

public final class LogParserUtils {

public static String[] readParsingRules(final FilePath parsingRulesFile)
throws IOException, InterruptedException {
return parsingRulesFile.readToString().split("\n");
public static String[] readParsingRules(final FilePath parsingRulesFile) throws IOException {
try {
return parsingRulesFile.readToString().split("\n");
} catch (InterruptedException ie) {
throw new IOException(ie);
}
}

public static boolean skipParsingRule(final String parsingRule) {
Expand Down

0 comments on commit cc2c42e

Please sign in to comment.