Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #582 from molekamp/ReopenableRotatingFileOutputStr…
…eam-windows

fixed [JENKINS-15408]: Rotation of slave launch logs on Windows
  • Loading branch information
molekamp committed Nov 17, 2012
2 parents ec0b59d + 890001b commit e655333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -70,6 +70,9 @@
<li class="major bug">
Jenkins kicks off the wrong downstream builds for Maven.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-15367">issue 15367</a>)
<li class=bug>
Rotation of slave agent launch logs is broken for Windows masters.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-15408">issue 15408</a>)
</ul>
</div><!--=TRUNK-END=-->

Expand Down
Expand Up @@ -54,7 +54,9 @@ public void rewind() throws IOException {
for (int i=size-1;i>=0;i--) {
File fi = getNumberedFileName(i);
if (fi.exists()) {
fi.renameTo(getNumberedFileName(i+1));
File next = getNumberedFileName(i+1);
next.delete();
fi.renameTo(next);
}
}
}
Expand Down

0 comments on commit e655333

Please sign in to comment.