Pipeline fails at start with `org.codehaus.groovy.control.MultipleCompilationErrorsException: unable to resolve class`.
IntermediateTroubleshootingJenkins Build and Agent Failures
Answer
Likely causes → Missing import, shared library not loaded, library class path wrong.
Diagnose → Read the unresolved class name; check @Library line and that library has src/ package structure.
Fix → Add @Library('lib@v1') _ and the proper import, fix the package path.
Prevent → Unit test library code and keep a sample pipeline that loads it.
More on Jenkins Build and Agent Failures
Jenkins console shows `sh: 1: mvn: not found` on one agent only.Beginner`java.lang.NoSuchMethodError: No such DSL method 'xyz' found among steps`.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.Intermediate