- Using GitHub
- Currently does not use CI system
- Languages of the repository is Python
- The SonarCloud project is public, the URL is https://github.com/dodo5522/test-sonar
- PR is https://github.com/dodo5522/test-sonar/pull/5 (another PR for testing also has same problem)
- Problem is: I cannot set any branch as “Long Living Branches” on https://sonarcloud.io/project/branches?id=dodo5522_test-sonar
- Steps to reproduce
-
Set Long living branches pattern as
.*develop.*on sonarcloud -
Create new branch
develop3based onmasterin git repository working copy on my local machine -
Push the new branch
develop3to remote git repository -
Create new branch
feature/id/1/masterbased ondevelop3, add some change to source code on the branch, and push it to remote repository -
Run the below command on the working copy on my local machine
sonar-scanner -Dsonar.login=${MYTOKEN} -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=dodo5522_test-sonar -Dsonar.organization=dodo5522 -Dsonar.sources=. -Dsonar.pullrequest.base=develop3 -Dsonar.pullrequest.key=5 -Dsonar.pullrequest.branch=feature/id/1/master -
develop3does not exist on my sonarcloud project like below figure andfeature/id/1/masterbranch seems to be based onmasterthat should be based ondevelop3 -
Try to set Long living branches pattern as
.*on sonarcloud like below figure and try to do similar procedure 1.~5. but has same problem.
-
Sorry, I could solve this issue. I need to register branch name and target according to your help https://sonarcloud.io/documentation/branches/overview/ . Thanks.
