Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
[JENKINS-25975] Seem to have fixed a race condition whereby quick `sh…
Browse files Browse the repository at this point in the history
…` steps would sometimes not print all of their output.
  • Loading branch information
jglick committed May 29, 2015
1 parent cbf9014 commit 27e5b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -364,7 +364,7 @@ private void startJnlpProc() throws Exception {
Thread.sleep(100);
}
story.j.assertBuildStatusSuccess(JenkinsRuleExt.waitForCompletion(b));
story.j.assertLogContains("finished waiting", b); // TODO sometimes missing
story.j.assertLogContains("finished waiting", b);
story.j.assertLogContains("OK, done", b);
killJnlpProc();
}
Expand Down
Expand Up @@ -193,6 +193,9 @@ private void check() {
LOGGER.log(Level.FINE, "still running in {0} on {1}", new Object[] {remote, node});
} else {
recurrencePeriod = 0;
if (controller.writeLog(workspace, listener.getLogger())) {
LOGGER.log(Level.FINE, "last-minute output in {0} on {1}", new Object[] {remote, node});
}
controller.cleanup(workspace);
if (exitCode == 0) {
getContext().onSuccess(exitCode);
Expand Down

0 comments on commit 27e5b23

Please sign in to comment.