sparrow
sparrow

Reputation: 66

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

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?

Upvotes: 3

Views: 1767

Answers (2)

S.Spieker
S.Spieker

Reputation: 7355

You could trigger job Z after job Y is executed.

Or if you would like to add priorities to your jobs, you could give that plugin a try:

Priority sorter plugin

Upvotes: 0

Nandeesh Bijoor
Nandeesh Bijoor

Reputation: 173

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

Upvotes: 1

Related Questions