checkout scm
fetch both the pre-merged PR commit as well as the target branch, or do I need to git fetch origin refs/heads/${CHANGE_TARGET}:refs/heads/${CHANGE_TARGET}
myself, and take care of any variation in remote name, authentication, etc?It's #SonarQube that wants the target branch available by name to correctly analyze what change the PR introduces. Without this it can only analyze the project as a whole.