[JENKINS-12488] Exports TRIGGERED_BUILD_TAGS env variable, which lists c... #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...omma separated list of triggered build tags. Also, add "Lines from file Parameter Factory"
This request is a replacement for this old pull request, which I've closed based on feedback - #15
Adding a general purpose ParameterFactory which triggers a build for each line in a text file. The same effect could be achieved with the FileBuildParameterFactory. However, using FileBuildParameterFactory would result in having to write 200 property files to the workspace. I think both are useful and should be included.
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.
More background - Instead of running of tests (JBehave->selenium) sequentially, we were looking for a way to:
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.