DEV Community

Cover image for Jenkins. Invalid agent type "docker" specified. Must be one of [any, label, none]
Gayathri R
Gayathri R

Posted on

Jenkins. Invalid agent type "docker" specified. Must be one of [any, label, none]

While executing the docker container inside the jenkins (pipeline) failed with below error.

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 3: Invalid agent type "docker" specified. Must be one of [any, label, none] @ line 3, column 9.
           docker { image 'ubuntu:18.04' }
Enter fullscreen mode Exit fullscreen mode

You have to install 2 plugins: Docker and Docker Pipeline plugin.

Go to Jenkins root page > Manage Jenkins > Manage Plugins > Available and search for the plugins.

Hope that helps.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more