Jenkins not executing jobs (pending - waiting for next executor)
Solution 1:
The Jenkins admin console can run, even with the Master node offline. This can happen when Jenkins runs out of disk space.
To confirm, do the following (with thanks to geekride - jenkins-pending-waiting-for-next-available-executor):
- go to Jenkins -> Manage Jenkins -> Manage Nodes
- examine the "master" node to see if it is offline. It may be reporting that the master node is out of disk space.
Solution 2:
- go to Jenkins -> Manage Jenkins -> Manage Nodes
- examine the "master" node.(Click on configure icon)
In my case No of executors was set to 0. Increased it and issue got fixed.
Solution 3:
In my case, I had the following set in my JenkinsFile
node('node'){
...
}
There was no node called 'node', only master (the value had been left in there after following some basic tutorials). Changing the value to 'master' got the build working.
Solution 4:
I ran into a similar problem because my master was set to "Leave this machine for tied jobs only." So, even though I disabled the Slave, Jenkins kept on bypassing the Master, looking for something else.
Go to Jenkins --> Manage Jenkins --> Manage Nodes, and click on the configure button of your master node (looks like a screwdriver and a wrench). Check the Usage and make sure it's on "Utilize this slave as much as possible."