Skip to content

Commit

Permalink
Merge pull request #551 from dwnusbaum/JENKINS-73835
Browse files Browse the repository at this point in the history
[JENKINS-73835] Adjust `NetworkTest.errorCleaningArtifacts` test to record more loggers for compatibility with newer cores
  • Loading branch information
jglick authored Oct 16, 2024
2 parents cf5e4af + d49fda3 commit 84f6f8f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import java.util.logging.Level;
import java.util.logging.LogRecord;
import jenkins.model.ArtifactManagerConfiguration;
import jenkins.model.GlobalBuildDiscarderListener;
import org.apache.http.ConnectionClosedException;
import org.apache.http.HttpVersion;
import org.apache.http.entity.StringEntity;
Expand Down Expand Up @@ -325,7 +326,7 @@ public void interruptedListing() throws Exception {

@Test
public void errorCleaningArtifacts() throws Exception {
loggerRule.record(WorkflowRun.class, Level.WARNING).record("jenkins.model.BackgroundGlobalBuildDiscarder", Level.WARNING).capture(10);
loggerRule.record(WorkflowRun.class, Level.WARNING).record("jenkins.model.BackgroundGlobalBuildDiscarder", Level.WARNING).record(GlobalBuildDiscarderListener.class, Level.WARNING).capture(10);
WorkflowJob p = r.createProject(WorkflowJob.class, "p");
p.setDefinition(new CpsFlowDefinition("node('remote') {writeFile file: 'f', text: '.'; archiveArtifacts 'f'}", true));
r.buildAndAssertSuccess(p);
Expand Down

0 comments on commit 84f6f8f

Please sign in to comment.