Skip to content

Commit

Permalink
[JENKINS-73692] Turn off logging from BackgroundGlobalBuildDiscarder (
Browse files Browse the repository at this point in the history
jenkinsci#9663)

Turn off logging from `BackgroundGlobalBuildDiscarder`

(cherry picked from commit f84ab6a)
  • Loading branch information
jglick authored and krisstern committed Sep 16, 2024
1 parent bddc28b commit d894603
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,9 @@ protected void execute(TaskListener listener) throws IOException, InterruptedExc
}

public static void processJob(TaskListener listener, Job job) {
listener.getLogger().println("Processing " + job.getFullName());
GlobalBuildDiscarderConfiguration.get().getConfiguredBuildDiscarders().forEach(strategy -> {
String displayName = strategy.getDescriptor().getDisplayName();
listener.getLogger().println("Offering " + job.getFullName() + " to " + displayName);
if (strategy.isApplicable(job)) {
listener.getLogger().println(job.getFullName() + " accepted by " + displayName);
try {
strategy.apply(job);
} catch (Exception ex) {
Expand Down

0 comments on commit d894603

Please sign in to comment.