Interview Prep/CI/CD/Jenkins Build and Agent Failures

`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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures