Issue
I've seen numerous questions on SO for similar issues, but I haven't found one that answers this question for me.
I'm looking for pretty much the simplest use case for parallel builds. I'd like to do the following:
Job1 (git commit no: abc123) | +------- SubJob1 (git commit no: abc123) | +------- SubJob2 (git commit no: abc123)
Both subjobs would be executed in parallel, and Job1 wouldn't complete until all subjobs finished.
Job1 gets executed by a git hook for a commit against any branch. At the moment the subjobs execute other commits instead of the exact one the parent job originally executed against.
Anyway to get this working?
As a bonus question, would it be possible for console output to be rolled up to the master job?
Thanks
Solution
You can achieve this with the MultiJob plugin which allows you to trigger phases of jobs (subjob1 and subjob2) in addition to any standard job building steps you want in the main job (job1)
You can also pass parameters into the subjobs Jenkins using File Parameter with MultiJob Project
EDIT the git parameter plugin may help to pass git revisions into jobs
Answered By - KeepCalmAndCarryOn Answer Checked By - Mildred Charles (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.