This will make it easier to distinguish nightly rpmrepo snapshots from actual nightly repositories in the test logs.
Only use the branch options if it's actually running in a branch and analyse main without them, sonarqube otherwise doesn't recognize the main branch.
Adding sonarqube scan to the pipeline.