Is there any way to stop Jenkins from making "Build Queue"

1,277 views
Skip to first unread message

tushar singhal

unread,
Dec 15, 2015, 8:58:28 AM12/15/15
to Jenkins Users
Is there any way to stop Jenkins from making "Build Queue"? I need that once the job starts, jenkins won't be able to queue any other job.

Victor Martinez

unread,
Dec 15, 2015, 11:27:26 AM12/15/15
to Jenkins Users
Hi,

Off the top of my head I would consider the below approaches:

1) https://wiki.jenkins-ci.org/display/JENKINS/Build+Blocker+Plugin

2) groovy step
You can easily disable any slaves via some groovy scripting as part of your build steps, maybe the first step.

3) server in maintenance mode, I believe you can run some CLI in order to switch on the maintained mode.

In any case, there are some scenarios which you might fail, if there are some running jobs when that special job gets trigger and they should be stopped/aborted then the above approaches will not work. And you will need to code that logic, likely in groovy.

My two cents

Reply all
Reply to author
Forward
0 new messages