Job not executing on Jenkins with the Docker plugin


Jenkins is one of my favourite tools. Docker is in that league too. Putting them together will really leverage the strengh of both tools. The Docker plugin can do that for you. This plugin can run a Docker container as a Jenkins slave on your Docker host. If the job on the slave is done, the container will be removed automatically.

However when running it on one particular Jenkins instance, it did not work! The slave was created, but somehow the job was not executed and stayed in the queue. On other Jenkins instances it did work. What was going on? After a while i figured it out. The job used for testing, was not a freestyle job. I used a multiconfiguration job accidently. After changing the job to a freestyle job, it worked like a charm!


Leave a Reply