From 1356698f315ddf75fa276c89bf19cb5de5482519 Mon Sep 17 00:00:00 2001 From: Damian Gadomski Date: Tue, 11 Aug 2020 11:45:51 +0200 Subject: [PATCH] Extending archiveJunit post-commit task with stability history --- .test-infra/jenkins/CommonJobProperties.groovy | 8 ++++++++ .../jenkins/job_PerformanceTests_BigQueryIO_Java.groovy | 2 +- .test-infra/jenkins/job_PerformanceTests_Python.groovy | 2 +- .../jenkins/job_PerformanceTests_SQLIO_Java.groovy | 2 +- ..._PostCommit_CrossLanguageValidatesRunner_Direct.groovy | 2 +- ...b_PostCommit_CrossLanguageValidatesRunner_Flink.groovy | 2 +- ...b_PostCommit_CrossLanguageValidatesRunner_Spark.groovy | 2 +- .test-infra/jenkins/job_PostCommit_Java.groovy | 2 +- .../job_PostCommit_Java_Dataflow_Examples_Java11.groovy | 2 +- ...Commit_Java_PortableValidatesRunner_Flink_Batch.groovy | 2 +- ...it_Java_PortableValidatesRunner_Flink_Streaming.groovy | 2 +- ...Commit_Java_PortableValidatesRunner_Spark_Batch.groovy | 2 +- .../job_PostCommit_Java_ValidatesRunner_Dataflow.groovy | 2 +- ...PostCommit_Java_ValidatesRunner_Dataflow_Java11.groovy | 2 +- .../job_PostCommit_Java_ValidatesRunner_Direct.groovy | 2 +- ...b_PostCommit_Java_ValidatesRunner_Direct_Java11.groovy | 2 +- .../job_PostCommit_Java_ValidatesRunner_Flink.groovy | 2 +- ...ob_PostCommit_Java_ValidatesRunner_Flink_Java11.groovy | 2 +- .../job_PostCommit_Java_ValidatesRunner_Samza.groovy | 2 +- .../job_PostCommit_Java_ValidatesRunner_Spark.groovy | 2 +- ...t_Java_ValidatesRunner_SparkStructuredStreaming.groovy | 2 +- .../job_PostCommit_Java_ValidatesRunner_Twister2.groovy | 2 +- .test-infra/jenkins/job_PostCommit_Python2.groovy | 2 +- .test-infra/jenkins/job_PostCommit_Python35.groovy | 2 +- .test-infra/jenkins/job_PostCommit_Python36.groovy | 2 +- .test-infra/jenkins/job_PostCommit_Python37.groovy | 2 +- .test-infra/jenkins/job_PostCommit_Python38.groovy | 2 +- ...b_PostCommit_Python_ValidatesContainer_Dataflow.groovy | 2 +- .../job_PostCommit_Python_ValidatesRunner_Dataflow.groovy | 2 +- ...b_PostCommit_Python_ValidatesRunner_Dataflow_V2.groovy | 2 +- .test-infra/jenkins/job_PostCommit_SQL.groovy | 2 +- .test-infra/jenkins/job_PreCommit_Java.groovy | 3 ++- .../jenkins/job_PreCommit_Java_Examples_Dataflow.groovy | 3 ++- .../job_PreCommit_Java_Examples_Dataflow_Java11.groovy | 2 +- .../jenkins/job_PreCommit_Java_PortabilityApi.groovy | 3 ++- .../job_PreCommit_Java_PortabilityApi_Java11.groovy | 2 +- .test-infra/jenkins/job_PreCommit_Python.groovy | 3 ++- .test-infra/jenkins/job_PreCommit_SQL.groovy | 3 ++- .test-infra/jenkins/job_PreCommit_SQL_Java11.groovy | 2 +- .test-infra/jenkins/job_sonarqube_report.groovy | 2 +- 40 files changed, 52 insertions(+), 39 deletions(-) diff --git a/.test-infra/jenkins/CommonJobProperties.groovy b/.test-infra/jenkins/CommonJobProperties.groovy index 248f8122167c6..d11d8cc2aea37 100644 --- a/.test-infra/jenkins/CommonJobProperties.groovy +++ b/.test-infra/jenkins/CommonJobProperties.groovy @@ -201,6 +201,14 @@ class CommonJobProperties { } } + static void setArchiveJunitWithStabilityHistory(context, String glob) { + context.archiveJunit(glob) { + testDataPublishers { + publishTestStabilityData() + } + } + } + // Sets common config for jobs which run on a schedule; optionally on push static void setAutoJob(context, String buildSchedule = '0 */6 * * *', diff --git a/.test-infra/jenkins/job_PerformanceTests_BigQueryIO_Java.groovy b/.test-infra/jenkins/job_PerformanceTests_BigQueryIO_Java.groovy index 0787c4cf29b36..f0d55737db86a 100644 --- a/.test-infra/jenkins/job_PerformanceTests_BigQueryIO_Java.groovy +++ b/.test-infra/jenkins/job_PerformanceTests_BigQueryIO_Java.groovy @@ -121,7 +121,7 @@ private void createPostCommitJob(jobConfig) { common.enablePhraseTriggeringFromPullRequest(delegate, jobConfig.title, jobConfig.triggerPhrase) common.setAutoJob(delegate, 'H */6 * * *') publishers { - archiveJunit('**/build/test-results/**/*.xml') + common.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } InfluxDBCredentialsHelper.useCredentials(delegate) additionalPipelineArgs = [ diff --git a/.test-infra/jenkins/job_PerformanceTests_Python.groovy b/.test-infra/jenkins/job_PerformanceTests_Python.groovy index 94b7b0094f2e6..58ea2c5260b1b 100644 --- a/.test-infra/jenkins/job_PerformanceTests_Python.groovy +++ b/.test-infra/jenkins/job_PerformanceTests_Python.groovy @@ -81,7 +81,7 @@ private void createPythonPerformanceTestJob(Map testConfig) { ) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } steps { diff --git a/.test-infra/jenkins/job_PerformanceTests_SQLIO_Java.groovy b/.test-infra/jenkins/job_PerformanceTests_SQLIO_Java.groovy index 2207c46e63af3..2c09ca27ad24c 100644 --- a/.test-infra/jenkins/job_PerformanceTests_SQLIO_Java.groovy +++ b/.test-infra/jenkins/job_PerformanceTests_SQLIO_Java.groovy @@ -46,7 +46,7 @@ private void createPostCommitJob(jobConfig) { common.enablePhraseTriggeringFromPullRequest(delegate, jobConfig.title, jobConfig.triggerPhrase) common.setAutoJob(delegate, 'H */6 * * *') publishers { - archiveJunit('**/build/test-results/**/*.xml') + common.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Direct.groovy b/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Direct.groovy index bc5bdacb6ca9d..6078ea874fd67 100644 --- a/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Direct.groovy +++ b/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Direct.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_XVR_Direct', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Flink.groovy b/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Flink.groovy index 8d663bf0554f2..e4fbbd7b08c62 100644 --- a/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Flink.groovy +++ b/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Flink.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_XVR_Flink', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Spark.groovy b/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Spark.groovy index 89f5333427591..827678955db36 100644 --- a/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Spark.groovy +++ b/.test-infra/jenkins/job_PostCommit_CrossLanguageValidatesRunner_Spark.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_XVR_Spark', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java.groovy b/.test-infra/jenkins/job_PostCommit_Java.groovy index cb3e0930dc89e..7b38de917fa9d 100644 --- a/.test-infra/jenkins/job_PostCommit_Java.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java.groovy @@ -33,7 +33,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java', 'Run Java PostCommit' // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_Dataflow_Examples_Java11.groovy b/.test-infra/jenkins/job_PostCommit_Java_Dataflow_Examples_Java11.groovy index 7e1f383ca3c58..3fa2e7a229082 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_Dataflow_Examples_Java11.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_Dataflow_Examples_Java11.groovy @@ -27,7 +27,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_Examples_Dataflow_Java1 commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 180) publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Batch.groovy b/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Batch.groovy index 8e62f8ed99e69..df59899cb86ae 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Batch.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Batch.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_PVR_Flink_Batch', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Streaming.groovy b/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Streaming.groovy index 1476bc8391db8..c8d9343462233 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Streaming.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Flink_Streaming.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_PVR_Flink_Streaming', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Spark_Batch.groovy b/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Spark_Batch.groovy index 2297402859a68..4c07b99f4b045 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Spark_Batch.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_PortableValidatesRunner_Spark_Batch.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_PVR_Spark_Batch', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow.groovy index 5feeb11ac43e1..8a6b076b519bc 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow.groovy @@ -32,7 +32,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Dataflo // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow_Java11.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow_Java11.groovy index af9e25ebd175b..9cc836f6ef0eb 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow_Java11.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Dataflow_Java11.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Dataflo commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 270) publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct.groovy index 13173390be427..95a217d439df5 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Direct' commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 180) publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct_Java11.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct_Java11.groovy index ee9a99d4d834a..d775815172a97 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct_Java11.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Direct_Java11.groovy @@ -32,7 +32,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Direct_ commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 180) publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink.groovy index 37cc9ec5d876c..70f3accfd3820 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Flink', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink_Java11.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink_Java11.groovy index 02e70a9046f10..3ebc191dbf217 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink_Java11.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Flink_Java11.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Flink_J commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 270) publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Samza.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Samza.groovy index 44231c2b07ecd..f51efeb8f38ee 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Samza.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Samza.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Samza', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Spark.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Spark.groovy index 21bd71a9aba48..45fbc9d6d0f08 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Spark.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Spark.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Spark', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming.groovy index d20b5484bfa21..3f15ecd947a74 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_SparkSt // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Twister2.groovy b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Twister2.groovy index fa33ded111872..9fc28b94182d6 100644 --- a/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Twister2.groovy +++ b/.test-infra/jenkins/job_PostCommit_Java_ValidatesRunner_Twister2.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Java_ValidatesRunner_Twister // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PostCommit_Python2.groovy b/.test-infra/jenkins/job_PostCommit_Python2.groovy index c91efdb8a1dc1..1308184bcb122 100644 --- a/.test-infra/jenkins/job_PostCommit_Python2.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python2.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python2', 'Run Python 2 Post commonJobProperties.setTopLevelMainJobProperties(delegate) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute shell command to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_Python35.groovy b/.test-infra/jenkins/job_PostCommit_Python35.groovy index 9a54d39e960a2..e5e79dd351283 100644 --- a/.test-infra/jenkins/job_PostCommit_Python35.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python35.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python35', 'Run Python 3.5 P commonJobProperties.setTopLevelMainJobProperties(delegate) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute shell command to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_Python36.groovy b/.test-infra/jenkins/job_PostCommit_Python36.groovy index 1a3751899797c..4bd701dcd65df 100644 --- a/.test-infra/jenkins/job_PostCommit_Python36.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python36.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python36', 'Run Python 3.6 P commonJobProperties.setTopLevelMainJobProperties(delegate) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute shell command to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_Python37.groovy b/.test-infra/jenkins/job_PostCommit_Python37.groovy index ed0edbea3c1b0..55bed2f75b718 100644 --- a/.test-infra/jenkins/job_PostCommit_Python37.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python37.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python37', 'Run Python 3.7 P commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 100) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute shell command to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_Python38.groovy b/.test-infra/jenkins/job_PostCommit_Python38.groovy index 85c0ee8b9f78f..53657f835b3a0 100644 --- a/.test-infra/jenkins/job_PostCommit_Python38.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python38.groovy @@ -30,7 +30,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python38', 'Run Python 3.8 P commonJobProperties.setTopLevelMainJobProperties(delegate, 'master', 100) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute shell command to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_Python_ValidatesContainer_Dataflow.groovy b/.test-infra/jenkins/job_PostCommit_Python_ValidatesContainer_Dataflow.groovy index fc73267db7718..00f6cb9e4ad8c 100644 --- a/.test-infra/jenkins/job_PostCommit_Python_ValidatesContainer_Dataflow.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python_ValidatesContainer_Dataflow.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Py_ValCont', commonJobProperties.setTopLevelMainJobProperties(delegate) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute shell command to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow.groovy b/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow.groovy index d3885d8db95e0..79268373d7117 100644 --- a/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Py_VR_Dataflow', 'Run Python commonJobProperties.setTopLevelMainJobProperties(delegate) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute gradle task to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow_V2.groovy b/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow_V2.groovy index ba256b4d241cc..3f6aa7231d047 100644 --- a/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow_V2.groovy +++ b/.test-infra/jenkins/job_PostCommit_Python_ValidatesRunner_Dataflow_V2.groovy @@ -29,7 +29,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_Py_VR_Dataflow_V2', 'Run Pyt commonJobProperties.setTopLevelMainJobProperties(delegate) publishers { - archiveJunit('**/nosetests*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/nosetests*.xml') } // Execute gradle task to test Python SDK. diff --git a/.test-infra/jenkins/job_PostCommit_SQL.groovy b/.test-infra/jenkins/job_PostCommit_SQL.groovy index 9207cdbae17d9..69a88b99bad7a 100644 --- a/.test-infra/jenkins/job_PostCommit_SQL.groovy +++ b/.test-infra/jenkins/job_PostCommit_SQL.groovy @@ -31,7 +31,7 @@ PostcommitJobBuilder.postCommitJob('beam_PostCommit_SQL', 'Run SQL PostCommit', // Publish all test results to Jenkins publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } // Gradle goals for this job. diff --git a/.test-infra/jenkins/job_PreCommit_Java.groovy b/.test-infra/jenkins/job_PreCommit_Java.groovy index a2382b2f4f3bb..cffe310163f78 100644 --- a/.test-infra/jenkins/job_PreCommit_Java.groovy +++ b/.test-infra/jenkins/job_PreCommit_Java.groovy @@ -17,6 +17,7 @@ */ import PrecommitJobBuilder +import CommonJobProperties as common PrecommitJobBuilder builder = new PrecommitJobBuilder( scope: this, @@ -39,7 +40,7 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( ) builder.build { publishers { - archiveJunit('**/build/test-results/**/*.xml') + common.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') recordIssues { tools { errorProne() diff --git a/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow.groovy b/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow.groovy index 88b8384793abf..96a54a00e8722 100644 --- a/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow.groovy +++ b/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow.groovy @@ -17,6 +17,7 @@ */ import PrecommitJobBuilder +import CommonJobProperties as common PrecommitJobBuilder builder = new PrecommitJobBuilder( scope: this, @@ -37,6 +38,6 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( ) builder.build { publishers { - archiveJunit('**/build/test-results/**/*.xml') + common.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } } diff --git a/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow_Java11.groovy b/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow_Java11.groovy index ed6ecff57a38f..dc8295cc3f50c 100644 --- a/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow_Java11.groovy +++ b/.test-infra/jenkins/job_PreCommit_Java_Examples_Dataflow_Java11.groovy @@ -39,7 +39,7 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( ) builder.build { publishers { - archiveJunit('**/build/test-results/**/*.xml') + properties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi.groovy b/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi.groovy index df5d9ed64f812..cdbfece425b09 100644 --- a/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi.groovy +++ b/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi.groovy @@ -17,6 +17,7 @@ */ import PrecommitJobBuilder +import CommonJobProperties as common PrecommitJobBuilder builder = new PrecommitJobBuilder( scope: this, @@ -36,6 +37,6 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( ) builder.build { publishers { - archiveJunit('**/build/test-results/**/*.xml') + common.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } } diff --git a/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi_Java11.groovy b/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi_Java11.groovy index 9251ea334ceb3..8fa8bff3e30b9 100644 --- a/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi_Java11.groovy +++ b/.test-infra/jenkins/job_PreCommit_Java_PortabilityApi_Java11.groovy @@ -38,7 +38,7 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( ) builder.build { publishers { - archiveJunit('**/build/test-results/**/*.xml') + properties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps { diff --git a/.test-infra/jenkins/job_PreCommit_Python.groovy b/.test-infra/jenkins/job_PreCommit_Python.groovy index 0b5270f96eef0..4804c10677e55 100644 --- a/.test-infra/jenkins/job_PreCommit_Python.groovy +++ b/.test-infra/jenkins/job_PreCommit_Python.groovy @@ -17,6 +17,7 @@ */ import PrecommitJobBuilder +import CommonJobProperties as common PrecommitJobBuilder builder = new PrecommitJobBuilder( scope: this, @@ -32,6 +33,6 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( builder.build { // Publish all test results to Jenkins. publishers { - archiveJunit('**/pytest*.xml') + common.setArchiveJunitWithStabilityHistory(delegate, '**/pytest*.xml') } } diff --git a/.test-infra/jenkins/job_PreCommit_SQL.groovy b/.test-infra/jenkins/job_PreCommit_SQL.groovy index 8330e3e5f2606..4b15405ae7bcf 100644 --- a/.test-infra/jenkins/job_PreCommit_SQL.groovy +++ b/.test-infra/jenkins/job_PreCommit_SQL.groovy @@ -17,6 +17,7 @@ */ import PrecommitJobBuilder +import CommonJobProperties as common PrecommitJobBuilder builder = new PrecommitJobBuilder( scope: this, @@ -31,7 +32,7 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( ) builder.build { publishers { - archiveJunit('**/build/test-results/**/*.xml') + common.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') recordIssues { tools { errorProne() diff --git a/.test-infra/jenkins/job_PreCommit_SQL_Java11.groovy b/.test-infra/jenkins/job_PreCommit_SQL_Java11.groovy index 1dabf4e669ac4..9253049163a7a 100644 --- a/.test-infra/jenkins/job_PreCommit_SQL_Java11.groovy +++ b/.test-infra/jenkins/job_PreCommit_SQL_Java11.groovy @@ -37,7 +37,7 @@ PrecommitJobBuilder builder = new PrecommitJobBuilder( ) builder.build { publishers { - archiveJunit('**/build/test-results/**/*.xml') + properties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') recordIssues { tools { errorProne() diff --git a/.test-infra/jenkins/job_sonarqube_report.groovy b/.test-infra/jenkins/job_sonarqube_report.groovy index afec03117e152..323ffeaeaa0d4 100644 --- a/.test-infra/jenkins/job_sonarqube_report.groovy +++ b/.test-infra/jenkins/job_sonarqube_report.groovy @@ -34,7 +34,7 @@ job('beam_sonarqube_report') { commonJobProperties.setAutoJob delegate publishers { - archiveJunit('**/build/test-results/**/*.xml') + commonJobProperties.setArchiveJunitWithStabilityHistory(delegate, '**/build/test-results/**/*.xml') } steps {