Disclaimer: I found out that we can pause Jenkins instance with CLI command or URL /quietDown, then resume it again. These are steps that Jenkins already use to safely reboot the instance. Source
And there is a plugin that allow me to define priorities.
TL;DR these solutions aren't complaint with the behaviour I look for
Question: I would like to be able to stop/pause an active jenkins instance without losing the queue.
Example: Imagine I have one executor running one build and queue with more two builds. I would like to manually pause the instance after the current running build is finished. And the queue will maintain as it is. Or even increasing. Then whenever I "feel like" could resume the Jenkins again and it would pick from the top of the queue.
This is attainable?
Since, I wasn't able to find on answer on this, I tried the /quietDown
and /cancelQuietDown
commands.
I have found out that /quietDown
it will pause the instance of Jenkins and does not clear the queue. In fact, the Jenkins is still working.
The queue is still receiving on demand or scheduled jobs.
After the /cancelQuietDown
, Jenkins will start again from top of queue.