Interview Prep/CI/CD/Builds, Artifacts, Nexus, SonarQube and Testing

Every merge to main should produce a unique semantic version automatically.

IntermediateScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer

Situation read → Versioning without manual edits.

What I'd do →

  1. Adopt Conventional Commits and a tool like semantic-release or release-please to compute the next version from commit types.
  2. Tag, publish the artifact and create release notes in the same pipeline.
  3. For services, also tag images with <semver> and the commit SHA.

Why → Version numbers become a function of history, removing human error.

Interview tip → Squash-merge with a good PR title keeps commit-based versioning clean.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Builds, Artifacts, Nexus, SonarQube and Testing