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])
}
On Thursday, 7 July 2016 06:30:37 UTC+2, Ram D wrote:
>
> 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
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/37616748-0c90-4986-ac54-916d64414cc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.