-
Bug
-
Resolution: Unresolved
-
Major
If a Matrix job has a 'weight' not equal to 1, it fails to start its children and just runs indefinitely. Also, it is shown as 'running' in Job view even after cancelling, which is fixed only by restarting Jenkins.
I think there is a problem with starting FlyWightTask. Jenkins wait for thread in "offer.event.block();" (Queue.java::830 .Jenkins code). Executor #-1 seems to not release, as it should.
FreeStyle projects starts normally even it's weight > 1.
- is duplicated by
-
JENKINS-18269 Can't build matrix-job with heavy build plugin set to >1
-
- Resolved
-
It seems to doesn't work with matrix job because when matrix job executing it doesn't do MappingWorksheet or smth similar for matrix job. Freestyle project executes MappingWorksheet function and this function allocates buildable jobs to executors as needed. For example, if (Queue.java:802) ws.works[0] contains two elements - "FreeStyleProject" and "HeavyJobProperty". It's recognized like two (sub?)tasks. These tasks is occupied by Executors #0 and #1. As a result whole process correctly executed. When our project is a matrix project with weight > 1 MappingWorksheet function doesn't executes.So, in this case our project isn't divided into two buildable (sub?)tasks and isn't executed correctly (isn't consumed by many executors).I can't figure out how matrix job manage queue. So I don't know how to make this plugin to work with matrix job.