Developers use different local tool versions than CI. How do you align them?
BeginnerScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Environment drift.
What I'd do →
- Define tool versions in one place:
.tool-versions(asdf/mise), devcontainers, or a shared build image. - Use the same image for local
docker runand CI jobs. - Verify with a CI step that prints versions.
Why → Identical toolchains remove a large class of "works on my machine".
Interview tip → Devcontainers are the modern answer.
More on Builds, Artifacts, Nexus, SonarQube and Testing
A Maven project resolves dependencies from Maven Central on every build and a left-pad style outage would stop all builds.BeginnerYou must publish snapshot and release artifacts without overwriting a released version.IntermediateEvery merge to main should produce a unique semantic version automatically.IntermediateAn npm build is non-reproducible: different versions install on different days.BeginnerThe SonarQube quality gate must block merging PRs that add new bugs, vulnerabilities or uncovered code.IntermediateCoverage shows 0% in SonarQube although tests run in CI.Intermediate