Skip to content
Permalink
Browse files

[JENKINS-27208] InterruptedException is catched and relaunched as IOE…

…xception
  • Loading branch information
recena committed Sep 29, 2015
1 parent e59455c commit cc2c42ebcfa4b2bc9f5280b63a723803aec8b7dc
@@ -41,7 +41,7 @@

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());
@@ -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) {

0 comments on commit cc2c42e

Please sign in to comment.