Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins not executing jobs (pending - waiting for next executor)

Tags:

jenkins

Jenkins won't execute any jobs. Having viewed this question, I have disabled all slave nodes but a simple job won't even run on the Master node.

What is wrong?

like image 622
Michael Easter Avatar asked Feb 27 '13 13:02

Michael Easter


People also ask

How can you avoid the waiting time for the triggered jobs in Jenkins?

You can set timeout duration for a particular project by defining a global timeout variable and using it in your job. Go to Manage Jenkins > Configure System and in Global Properties check Environment Variables , then add a variable (ex: EXEC_TIME_OUT) to it and assign the timeout amount.

What is build executor status in Jenkins?

Resolution. A Jenkins executor is one of the basic building blocks which allow a build to run on a node/agent (e.g. build server). Think of an executor as a single "process ID", or as the basic unit of resource that Jenkins executes on your machine to run a build.


2 Answers

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.
like image 175
Michael Easter Avatar answered Sep 22 '22 18:09

Michael Easter


  • 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.

like image 44
PAVITRA Avatar answered Sep 19 '22 18:09

PAVITRA