Skip to content

Commit c144a2b

Browse files
committed
Enhance logging to diagnose CpsFlowDefinitionRJRTest.flushLogsOnShutdown failure on Windows
1 parent 479665f commit c144a2b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

plugin/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<node.version>18.13.0</node.version>
4646
<npm.version>8.19.3</npm.version>
4747
<yarn.version>1.22.19</yarn.version>
48+
<jenkins-test-harness.version>1926.v9b_323a_4da_421</jenkins-test-harness.version> <!-- Temporary, required to diagnose RJR issues due to https://github.com/jenkinsci/jenkins-test-harness/pull/544#issuecomment-1456707299 -->
4849
</properties>
4950
<dependencyManagement>
5051
<dependencies>

plugin/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsFlowDefinitionRJRTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.jenkinsci.plugins.workflow.cps;
22

3+
import java.util.logging.Level;
34
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
45
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
56
import org.junit.Rule;
@@ -25,6 +26,7 @@ private static void doesItSmoke(JenkinsRule r) throws Exception {
2526

2627
@Test
2728
public void flushLogsOnShutdown() throws Throwable {
29+
rjr.withLogger(CpsFlowExecution.class, Level.FINER);
2830
rjr.then(CpsFlowDefinitionRJRTest::flushLogsOnShutdownPreRestart);
2931
rjr.then(CpsFlowDefinitionRJRTest::flushLogsOnShutdownPostRestart);
3032
}

0 commit comments

Comments
 (0)