A build uses `latest` tags for base images and suddenly breaks without code changes.
BeginnerScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Unpinned inputs.
What I'd do →
- Pin base images by version and digest:
FROM node:22.11-slim@sha256:.... - Let Renovate or Dependabot open PRs to bump them.
- Pin tool versions in the pipeline too.
Why → Controlled upgrades turn surprise breakages into reviewable PRs.
Interview tip → Pinning plus automated updates is the balanced 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