Is there option to display all recursive jobs of build flow in build monitor view ??

17 views
Skip to first unread message

Ram D

unread,
Jul 7, 2016, 12:30:37 AM7/7/16
to jenkins...@googlegroups.com

Hi All,

Jenkins Version 1.642.4

I am currently stuck while display of build results on monitor view

My jenkins configuration goes like this - 

I have many tests to be executed using Jenkins. To achieve that, I created a build flow job (e.g test_flow) which executes one other "Testing" job with test names as parameters. Sample code of build flow is given below -

testsetlist = ["test_A","test_B", ........ many more]

for (int idx = 0; idx < testsetlist.size(); idx++) {
    execute(testsetlist[idx])
}

def execute(testsetname)
{
  ignore(FAILURE)
  {
      b1 = build("Testing", param1: testsetname)
  }
}

The idea to use Build Flow here was not to duplicate the same jobs with different parameter, which becomes to heavy to manage it on a longer run.

Functionality wise, everything works fine but I'm not able to display the build status of each and every test (e.g. test_A and test_B) on "Build Monitor View" as they are not defined as specific jobs. Build Monitor View just displays "Build Flow job" and and last execution of "Testing" job. (Last execution meaning, execution of the last item in the tests list defined in flow).

Question: 

1. Is there any way to display the build status of all the tests ("test_A","test_B", ..... n) on "Build Monitor View" or any other similar thing without creating individual jobs for each and every tests ?

2. Is there any other changes I could do in the configuration to achieve the same thing ?

Any sort of solutions much appreciated. 

Cheers,

Ramesh

Ram D

unread,
Jul 8, 2016, 2:20:12 AM7/8/16
to jenkins...@googlegroups.com
Hi Guys,

Any information on this item ? Anyone resolved such issue ?

Cheers,
Ramesh

Harry G.

unread,
Jul 11, 2016, 7:41:33 AM7/11/16
to Jenkins Users
You might want to use pipeline plugin and its stages for this, e.g.

testsetlist = ["test_A","test_B", 'testbla']


for (int idx = 0; idx < testsetlist.size(); idx++) {
  stage testsetlist[idx]
  execute(testsetlist[idx])
Reply all
Reply to author
Forward
0 new messages