We have a pipeline job the first schedules a "build" job and once that completes it triggers a large "test" matrix job. The matrix job is parametrized, and one of the parameters is BuildPriority (String parameter type). The BuildPriority parameter is set by the pipeline job when triggering the job, depending on things like PR name or trigger comment, and I can see that it gets set correctly to 2 or 3 as I want.
I have 3 priority groups defined, all of the type "Jobs and folders marked for inclusion", so I don't expect any interference between them. One of them is called "Custom priority group" and the matrix job belongs to it. This group has default priority and under priority strategy I have "Use Priority from Build Parameter" and the parameter name is BuildPriority.
With a matrix of size 5, this is my expectation:
trigger pipelineA->trigger MatrixA(BuildPriority=3)
Unfortunately what I see is that all combinations of MatrixA are executed before any of MatrixB, basically ignoring the priority that I set with the build parameter.
I checked the logs and I see all combinations with "reason: Use Priority from Build Parameter, priority: 2" for both Matrix job combinations. I can see that the parameter was set correctly for the run in the /parameters page of the two matrix jobs, so I am not sure why it's not working