@@ -339,6 +339,22 @@ def isJdkEnabled(jdk) {
339339 return ! params. jdk?. trim() || params. jdk. trim() == jdk
340340}
341341
342+ /**
343+ * Noisy (but harmless) output lines, filtered from the in-memory console log.
344+ * The full output is still saved in the archived stage log (build/*.log.xz),
345+ * so this only trims what the controller holds in memory / renders in the UI.
346+ **/
347+ def consoleNoiseFilters () {
348+ return [
349+ " Forking using command" // ant echoes the full forked classpath before every maven forked run
350+ ]
351+ }
352+
353+ // append a sed filter that drops lines matching consoleNoiseFilters() from a step's output
354+ def filterConsoleOutput (String script ) {
355+ return " ${ script} | sed -e " + consoleNoiseFilters(). collect { " /${ it} /d" }. join(" -e " )
356+ }
357+
342358/**
343359 * Renders build script into pipeline steps
344360 **/
@@ -366,7 +382,7 @@ def build(command, cell) {
366382 script_vars = " ${ script_vars} m2_dir=\' ${ WORKSPACE} /build/m2\' "
367383 timeout(time : 1 , unit : ' HOURS' ) {
368384 try {
369- def status = sh label : " RUNNING ${ cell.step} ..." , script : " ${ script_vars} ${ build_script} ${ cell.jdk} 2>&1 | tee >( xz -c > build/${ logfile} )" , returnStatus : true
385+ def status = sh label : " RUNNING ${ cell.step} ..." , script : filterConsoleOutput( " ${ script_vars} ${ build_script} ${ cell.jdk} 2>&1 | tee >( xz -c > build/${ logfile} )" ) , returnStatus : true
370386 dir(" build" ) {
371387 archiveArtifacts artifacts : " ${ logfile} " , fingerprint : true
372388 copyToNightlies(" ${ logfile} " , " ${ cell.step} /jdk${ cell.jdk} /${ cell.arch} /" )
@@ -428,7 +444,7 @@ def test(command, cell) {
428444 try {
429445 buildJVMDTestJars(cell, script_vars, logfile)
430446 script_vars = " ${ script_vars} docker_timeout_hours=\" ${ command.timeout_hours} \" "
431- def status = sh label : " RUNNING TESTS ${ cell.step} ..." , script : " ${ script_vars} .build/docker/run-tests.sh -a ${ cell.step} -c '${ cell.split} /${ splits} ' -j ${ cell.jdk} 2>&1 | tee >( xz -c > build/${ logfile} )" , returnStatus : true
447+ def status = sh label : " RUNNING TESTS ${ cell.step} ..." , script : filterConsoleOutput( " ${ script_vars} .build/docker/run-tests.sh -a ${ cell.step} -c '${ cell.split} /${ splits} ' -j ${ cell.jdk} 2>&1 | tee >( xz -c > build/${ logfile} )" ) , returnStatus : true
432448 dir(" build" ) {
433449 archiveArtifacts artifacts : " ${ logfile} " , fingerprint : true
434450 }
@@ -495,7 +511,7 @@ def buildJVMDTestJars(cell, script_vars, logfile) {
495511 try {
496512 unstash name : " jvm_dtests_${ cell.arch} _${ cell.jdk} "
497513 } catch (error) {
498- sh label : " RUNNING build_dtest_jars..." , script : " ${ script_vars} .build/docker/run-tests.sh -a build_dtest_jars -j ${ cell.jdk} 2>&1 | tee >( xz -c > build/${ logfile} )"
514+ sh label : " RUNNING build_dtest_jars..." , script : filterConsoleOutput( " ${ script_vars} .build/docker/run-tests.sh -a build_dtest_jars -j ${ cell.jdk} 2>&1 | tee >( xz -c > build/${ logfile} )" )
499515 stash name : " jvm_dtests_${ cell.arch} _${ cell.jdk} " , includes : ' **/dtest*.jar'
500516 }
501517 }
0 commit comments