How to get number of aggregated test results from pararell jobs run from build flow dsl in same build flow DSL?

13 views
Skip to first unread message

Jakub Gładykowski

unread,
Nov 6, 2015, 5:46:06 AM11/6/15
to Jenkins Users
Hi,

I got this simple snippet of build flow job which schedules few hundred jobs to be run parallel on many nodes:

jobs = build.environment.get("TEST_LIST").split(",")
jobs_to_run = []

number_of_jobs = jobs.size()

jobs.each {
  def job_name = it
  def closure = {
      build(job_name)
  }
  jobs_to_run.add(closure)
}
parallel(jobs_to_run)

When build flow finishes I aggregate results using Build Flow Test Aggregator Plugin. So far so good.

But if some test will not produce results.xml file (badly written test / node fail), it will not show up in Aggregated Test Results. This is why I would like to programmatically get number of results gathered by aggregator and test names, to compare initial list of tests with final output. Can I achieve it in same build flow ? This way I would be able to add some extra information on Aggregated Test Results page using GroovyPostbuildSummaryAction.

Sunny regs,
Jakub
Reply all
Reply to author
Forward
0 new messages