Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins - give priority to all downstream jobs over job in queue

Tags:

jenkins

I have a scenario where a jenkins job X is executing on a node, which has a downstream job Y to be executed on the same node. Also when the first job is executing, i have another job Z in the queue for this node.

I want Y to execute after X has executed. Currently, the job in queue(Z) is excuting after X, and the downstream job is being put on queue.

Also, I do not want X to wait until Y has finished.

How can i do this?

like image 242
sparrow Avatar asked Nov 29 '25 13:11

sparrow


1 Answers

I have tried all possible way in Priority sorter plugin. But I couldn't achieve your requirement.

I found below links during my research. Hope it helps you. Let me know if it works.

Jenkins Priority Sorter Plugin - How to use BuildPriority Parameter

http://jenkins-ci.361315.n4.nabble.com/priority-sorter-plugin-tp4692827p4706187.html

The links say, you can achieve priority based execution by allowing jobs in parallel/concurrent mode

like image 149
Nandeesh Bijoor Avatar answered Dec 02 '25 04:12

Nandeesh Bijoor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!