Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented Sep 30, 2016

Needed for jenkinsci/workflow-job-plugin#27, but generally should be an improvement.

@reviewbybees

}
RunningBuild build = new RunningBuild(r);
RunningBuild orig = builds.put(r.getLogFile(), build);
RunningBuild orig = builds.put(r.getRootDir(), build);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just needed a unique identifier of a build × $JENKINS_HOME; were not actually using the log file per se.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't help with ExternalTaskLogging story

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are referring to logging from non-Runs, that is true, but anyway BuildWatcher does not support them currently either.

synchronized void copy() {
try {
pos = log.writeLogTo(pos, sink);
pos = r.getLogText().writeLogTo(pos, sink);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See this precedent. getLogText in general needs to be called repeatedly as more log output arrives.

@ghost
Copy link

ghost commented Oct 4, 2016

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@oleg-nenashev
Copy link
Member

🐝

@jglick jglick merged commit 615e2c1 into jenkinsci:master Oct 5, 2016
@jglick jglick deleted the logs-JENKINS-38381 branch October 5, 2016 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants