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
- Compare the called name against the list of available steps in the error.
- If it is a typo, correct the spelling and case to a listed step.
- If the step belongs to a plugin (e.g.
docker.buildneeds Docker Pipeline), install that plugin on the controller.
Terminal
# Install the plugin providing the step, then restart if prompted
jenkins-plugin-cli --plugins docker-workflowHow to prevent it
- Pin required plugins in a
plugins.txtso 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
Jenkins "WorkflowScript: Missing required section" Declarative validation errorFix Jenkins "WorkflowScript: N: Missing required section 'agent'" / "Missing required parameter" - the Declar…
Jenkins "RejectedAccessException" script approval / sandbox in CIFix Jenkins "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to u…
Jenkins "ClassCastException" on a pipeline step argument in CIFix Jenkins "java.lang.ClassCastException: ... cannot be cast to ..." raised while binding a step argument -…