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' }
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)