SonarQube analysis retries: overwrite the same branch key or use a distinct key per attempt?
A CI pipeline needs to retry a SonarQube analysis step when a run fails transiently, and the goal is that a resubmitted report produces exactly one current analysis per build — no duplicated issue counts and no polluted measure history. Two documented approaches exist. Re-running the scanner with the identical sonar.projectKey and sonar.branch.name replaces