Skip to content
Latchkey

Jenkins "No such DSL method 'X' found among steps" in CI

A pipeline step name resolved to nothing: no installed plugin contributes a DSL method by that name. Jenkins lists the steps it does know about. The cause is almost always a typo or a plugin that is not installed on this controller.

What this error means

The build fails mid-stage with java.lang.NoSuchMethodError: No such DSL method 'X' found among steps [...] followed by the full list of available step names.

Jenkins console
java.lang.NoSuchMethodError: No such DSL method 'dockerBuild' found among steps
[archive, bat, build, catchError, checkout, dir, echo, error, fileExists, git,
input, isUnix, junit, mail, node, parallel, sh, stage, stash, ...]

Common causes

The plugin that provides the step is not installed

Steps come from plugins. If the Docker Pipeline, Slack, or another plugin is missing, its steps are absent and the call resolves to no method.

A typo or wrong case in the step name

Step names are case-sensitive; archiveArtifacts is not archiveartifacts. A misspelled name matches no registered step.

How to fix it

Install the plugin or fix the name

  1. Compare the called name against the list of available steps in the error.
  2. If it is a typo, correct the spelling and case to a listed step.
  3. If the step belongs to a plugin (e.g. docker.build needs Docker Pipeline), install that plugin on the controller.
Terminal
# Install the plugin providing the step, then restart if prompted
jenkins-plugin-cli --plugins docker-workflow

How to prevent it

  • Pin required plugins in a plugins.txt so every controller has the same step set.
  • Reference the Pipeline Steps reference for exact step names and case.
  • Test new steps in a sandbox job before using them in shared pipelines.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →