jenkins - How to run same job parallel with different parameters for each run -
i have build job , test job parameters.
i want after build job, simultaneously run test job 1 parameter , same test job different parameters in parallel execution.
build job | / \ test job test job
with 1 params other params | | how accomplish , whether possible perform without having write own plugin?
can list<xmlsuite> suites = new arraylist<xmlsuite>(); (int = 0; < valuelist.size(); i++) { xmlsuite suite = new xmlsuite(); suite.setname("tmpsuite" + i); xmltest test = new xmltest(suite); test.setname("tmptest" + i); test.setparallel(parallelmode.classes); map<string, string> parameters = new hashmap<string, string>(); parameters.put("first-name", valuelist.get(i)); test.setparameters(parameters); list<xmlclass> classes = new arraylist<xmlclass>(); classes.add(new xmlclass("testclass1")); classes.add(new xmlclass("testclass2")); test.setxmlclasses(classes); suites.add(suite); } testng tng = new testng(); tng.setsuitethreadpoolsize(5); tng.setxmlsuites(suites); tng.run();
Comments
Post a Comment