What is the build queue and what can keep an item waiting in it?
IntermediateConceptArchitecture, executors & JENKINS_HOME
Answer
The queue holds tasks waiting to start. An item waits because of: the quiet period (default 5 s), no online node matches the label, all matching executors are busy, a cloud is still provisioning a node, disableConcurrentBuilds() with a running build, a lock resource held elsewhere, or a blocked upstream/downstream relationship. Hover the item in the queue or read /queue/api/json to see the why field, for example Waiting for next available executor on ‘linux’.
More on Architecture, executors & JENKINS_HOME
What are the main components of a Jenkins installation?BeginnerWhat is the difference between a node, an agent and an executor?BeginnerWhy should the built-in node have 0 executors?BeginnerWhat is `JENKINS_HOME` and what are its most important contents?BeginnerWhat happens if you lose the `secrets/` directory but keep `credentials.xml`?AdvancedHow does an agent communicate with the controller?Intermediate