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

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.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Jenkins Build and Agent Failures