`java.lang.NoSuchMethodError: No such DSL method 'xyz' found among steps`.
BeginnerTroubleshootingJenkins Build and Agent Failures
Answer
Likely causes → The plugin that provides the step is not installed or disabled; a typo; the step is used in the wrong context; a shared library is not loaded.
Diagnose → Open /pipeline-syntax/globals on the controller to list available steps; check Manage Jenkins > Plugins.
Fix → Install the plugin (for example pipeline-utility-steps for readJSON) or fix the spelling/library import @Library('lib') _.
Prevent → Pin plugins in plugins.txt and test pipelines against the same image in staging.
More on Jenkins Build and Agent Failures
Jenkins console shows `sh: 1: mvn: not found` on one agent only.Beginner`WorkflowScript: 12: Expected a step @ line 12, column 5.` in a Declarative pipeline.Beginner`hudson.AbortException: script returned exit code 1` with nothing useful above it.BeginnerBuild hangs at "Waiting for next available executor" even though agents look idle.Beginner`Cannot run program "nohup" (in directory ...): error=2, No such file or directory` on a Windows agent.IntermediateBuild fails with `java.io.NotSerializableException: java.util.regex.Matcher`.Advanced