Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-12488] Exports TRIGGERED_BUILD_TAGS env variable, which lists c... #16

Closed
wants to merge 1 commit into from
Closed

Conversation

ghost
Copy link

@ghost ghost commented Feb 12, 2012

...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:

  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.

…s comma separated list of triggered build tags. Also, add "Lines from file Parameter Factory"
@buildhive
Copy link

Jenkins » parameterized-trigger-plugin #2 FAILURE
Looks like there's a problem with this pull request
(what's this?)

@ghost ghost closed this Apr 28, 2012
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant