Welcome to the Linux Foundation Forum!

Error: Smoke Testing Docker Agent with Jenkins

Dears:
In video: Preparing Jenkins for Docker Agent-Based Builds
In step: Smoke Testing Docker Agent with Jenkins

When running the pipeline, I received below error:

  1. Started by user CI Admin
  2. org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  3. WorkflowScript: 3: Invalid agent type "docker" specified. Must be one of [any, label, none] @ line 3, column 9.
  4. docker { image 'node:7-alpine' }
  5. ^

I solved it by following steps in this https://theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Fix-Jenkins-Invalid-agent-type-Docker-specified-any-label-none-error

and restarted Jenkins.

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training