Advertisements

How to enable docker-compose to always rebuild containers from fresh images?

docker-compose by default may pull images from the cache. If you don’t want this to happen and want to rebuild all the containers from the scratch, the following command will help you.

docker-compose up --force-recreate

 

Advertisements

Jenkins/Hudson not executing jobs (pending – waiting for next executor)

Problem

I faced an issue in jenkins while executing multiple jobs in parallel. Upto a specific number of jobs are running in parallel, but beyond that, if we submit any job, it was going to waiting state.

Solution

In this case, jenkins is executing jobs in parallel upto some number. That means somewhere we need to increase the parallelism paramater.

  • go to Jenkins -> Manage Jenkins -> Manage Nodes
  • check whether all nodes are active and healthy
  • Check whether disk space is available in nodes
  • If everything is fine and if the machine have enough hardware configuration, you can increase the number of executors.

For that, click on configure and increase the number of executors as per your requirement. 

NB: If the jenkins is not at all executing jobs, then it might be because of offline master.