A global library is configured as "Load implicitly", and a developer asks why their pipeline got a new behaviour without any change on their side. How do you handle it?
BeginnerScenarioShared libraries & multibranch
Answer
Situation read → Implicit libraries load the default version into every pipeline automatically.
What I'd do →
- Explain the implicit load and show the build log line
Loading library shack-lib@v1. - Check the library changelog between the last good and current builds.
- Advise pinning a specific tag in their Jenkinsfile if they need stability (
@Library('[email protected]') _). - Review whether implicit loading is justified; restrict it to small, stable utilities.
Why → Implicit loading trades explicitness for convenience; teams must know it exists.
Interview tip → Recommend explicit @Library in all pipelines for readability.
More on Shared libraries & multibranch
A shared library change merged to `main` broke 200 pipelines within minutes. How do you prevent a repeat?IntermediateYou want to test a library branch against a real app pipeline without affecting anyone. How?BeginnerEvery app repo has its own pod YAML for builds, and they all drift. How do you standardize?IntermediateSecurity wants every pipeline to run a secret scan, even if teams forget to add it. How?AdvancedA multibranch project has 600 stale branch jobs and the folder page takes 30 seconds to load. What do you do?BeginnerA new org with 150 repositories wants Jenkins builds for every repo with a Jenkinsfile, without tickets to the platform team. What do you set up?Intermediate