Skip to content
Permalink
Browse files

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 f338e21b4f00d66f14b83af3f0c91a9ac15d8513
Showing with 5 additions and 5 deletions.
  1. +5 −5 core/src/main/java/hudson/triggers/SCMTrigger.java
@@ -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;
}
}

0 comments on commit f338e21

Please sign in to comment.
You can’t perform that action at this time.