Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #433 from marc-guenther/jenkins-10880
[JENKINS-10880] output the job when polling fails
  • Loading branch information
ssogabe committed Apr 20, 2012
2 parents d98926a + 7066daf commit f338e21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/hudson/triggers/SCMTrigger.java
Expand Up @@ -425,18 +425,18 @@ private boolean runPolling() {
logger.println("No changes");
return result;
} catch (Error e) {
e.printStackTrace(listener.error("Failed to record SCM polling"));
LOGGER.log(Level.SEVERE,"Failed to record SCM polling",e);
e.printStackTrace(listener.error("Failed to record SCM polling for "+job));
LOGGER.log(Level.SEVERE,"Failed to record SCM polling for "+job,e);
throw e;
} catch (RuntimeException e) {
e.printStackTrace(listener.error("Failed to record SCM polling"));
LOGGER.log(Level.SEVERE,"Failed to record SCM polling",e);
e.printStackTrace(listener.error("Failed to record SCM polling for "+job));
LOGGER.log(Level.SEVERE,"Failed to record SCM polling for "+job,e);
throw e;
} finally {
listener.close();
}
} catch (IOException e) {
LOGGER.log(Level.SEVERE,"Failed to record SCM polling",e);
LOGGER.log(Level.SEVERE,"Failed to record SCM polling for "+job,e);
return false;
}
}
Expand Down

0 comments on commit f338e21

Please sign in to comment.