Skip to content
Permalink
Browse files
[FIXED JENKINS-30055] The listener which closes flow graph log files …
…must receive events immediately, and unregister itself.

Originally-Committed-As: 1084a9bd2495989bb78e013c08c8348542e7955f
  • Loading branch information
jglick committed Sep 25, 2015
1 parent 5263170 commit 35a9115af586c5c0f3283e9cbebcab62c647c7ee
Showing with 2 additions and 2 deletions.
  1. +2 −2 job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
@@ -182,7 +182,7 @@ public WorkflowRun(WorkflowJob job, File dir) throws IOException {

FlowExecution newExecution = definition.create(owner, listener, getAllActions());
FlowExecutionList.get().register(owner);
newExecution.addListener(new GraphL());
newExecution.addListener(new GraphL(), false);
completed = new AtomicBoolean();
logsToCopy = new LinkedHashMap<String,Long>();
execution = newExecution;
@@ -385,7 +385,7 @@ private String key() {
}
}
if (execution != null) {
execution.addListener(new GraphL());
execution.addListener(new GraphL(), false);
executionPromise.set(execution);
if (!execution.isComplete()) {
// we've been restarted while we were running. let's get the execution going again.

0 comments on commit 35a9115

Please sign in to comment.