Skip to content

Commit

Permalink
[FIXED JENKINS-20989] PeepholePermalink RunListenerImpl oncompleted s…
Browse files Browse the repository at this point in the history
…hould be triggered before downstream builds are triggered
  • Loading branch information
olivergondza committed Mar 27, 2015
1 parent 021c1b3 commit ca5b9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/Run.java
Expand Up @@ -1780,13 +1780,13 @@ protected final void execute(@Nonnull RunExecution job) {
state = State.POST_PRODUCTION;

if (listener != null) {
RunListener.fireCompleted(this,listener);
try {
job.cleanUp(listener);
} catch (Exception e) {
handleFatalBuildProblem(listener,e);
// too late to update the result now
}
RunListener.fireCompleted(this,listener);
listener.finished(result);
listener.closeQuietly();
}
Expand Down

0 comments on commit ca5b9b6

Please sign in to comment.