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)