jenkinsci/parameterized-trigger-plugin — pull request #15 by parker21 (2012-01-27 02:33:28+00:00)
Title: JENKINS-12488 and "Lines from file Parameter Factory"

Can the ParameterizedTrigger plugin include a general purpose ParameterFactory which triggers a build for each line in a text file?

Combined with JENKINS-12488, which sets a list of triggered build tags (build name and build number) to an environment variable, we were able created a pretty cool way to parallelize automated tests. Will you please accept this pull request into the plugin? It includes the "Lines from file Parameter Factory" and the fix for JENKINS-12488.

Instead of running of tests (JBehave->selenium) sequentially, we were looking for a way to:

1) Determine which tests need to run (applying meta filters)
2) Dispatch the execution of each test to it's own build so that Jenkins can queue and distribute to slave nodes
3) Aggregate test results after all tests are complete

We tried different things. Triggering a Matrix job seemed promising. However, with a Matrix job, it seemed to us that the values for an axis are pretty static. They are decided when the configuration is saved. We were able do this more dynamically, by first writing the tests to be run to a text file and then, in the second build step, triggering a "worker job" (able to run concurrently) using a "Lines from file Parameter Factory" and blocking. A later step copies the artifacts from each triggered build (possible because of the fix for JENKINS-12488).

Anyway we are really happy with how it works and want to share with others! Please let me know if I can do anything else.