I want to run one job multiple times (each build with different parameters) on 2 executors. I want to execute them based on their build priority value.
Unfortunately Priority Sorter plugin doesn't help in my case, it doesn't sort it correctly - my builds are being executed based on the timestamp they were added to the queue instead of priority.* I believe this priority mechanism should be implemented before, on a queue level. How to achieve that?
*-I tested it on the newest Jenkins version and the newest Priority Sorter plugin version
CodePudding user response:
I think what you should try is Accelerated Build Now plugin. This plugin allows the Jenkins users to launch a build right there, even if the queue is long. It prioritises human launched jobs and brings them to the top.
The Priority Sorter I am using (v3.6.0 and Jenkins v.2.73.3) will not see a job unless you have enabled the Execute Concurrent builds if necessary.
So, allow parallel builds for that job and maybe decrease the number of cores to 1. See if that works. If not, you can try Throttle Concurrent Builds Plugin. This allows you to assign as many cores as you want in the specific job.
CodePudding user response:
Here is a patch for Priority Queue plugin. For your case it could be this patch.
