Skip to content

Commit

Permalink
Merge pull request #573 from jglick/BackgroundGlobalBuildDiscarder
Browse files Browse the repository at this point in the history
[JENKINS-73692] Ignore `Periodic background build discarder.log`
  • Loading branch information
jglick committed Aug 30, 2024
2 parents ab510dc + ac7b2e1 commit 998880b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ private void addControllerTasksLogs(Container result) {
Arrays.sort(files);
long recently = System.currentTimeMillis() - FileListCapComponent.MAX_LOG_FILE_AGE_MS;
for (File f : files) {
if (f.getName().startsWith("Periodic background build discarder.log")) {

Check warning on line 69 in src/main/java/com/cloudbees/jenkins/support/impl/TaskLogs.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 69 is only partially covered, one branch is missing
continue; // https://github.com/jenkinsci/jenkins/pull/9663

Check warning on line 70 in src/main/java/com/cloudbees/jenkins/support/impl/TaskLogs.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 70 is not covered by tests
}
if (f.lastModified() > recently) {
result.add(new FileContent("task-logs/{0}", new String[] {f.getName()}, f));
}
Expand Down

0 comments on commit 998880b

Please sign in to comment.