Skip to content

Commit

Permalink
[JENKINS-73835] Adjust errorCleaningArtifacts test to record more log…
Browse files Browse the repository at this point in the history
…gers for compatibility with newer cores
  • Loading branch information
dwnusbaum committed Oct 16, 2024
1 parent cf5e4af commit d49fda3
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 d49fda3

Please sign in to comment.