You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The branch plugin can break SonarQube projects in some cases when sonar.pullrequest.branch is defined in the analysis.
Users have reported reported unreachable projects, on closer inspection the error is caused by one or more faulty project pull request, that shouldn't exist in the first place. This completely blocks the access to the project on the GUI. Deleting the faulty pull requests through the API fixes the project.
Error message on GUI:
Closer inspection of the error:
To Reproduce
Steps to reproduce the behavior (1st option):
-Create a new project and run a branch analysis without ever running an analysis on the main branch.
-Arguments that were used when running the analysis: -Dsonar.analysis.mode=publish -Dsonar.pullrequest.branch= -Dsonar.pullrequest.key= -Dsonar.pullrequest.base=master
Steps to reproduce the behavior (2nd option):
-Set a faulty server side project setting (for example: sonar.issue.ignore.multicriteria and leaving the File Path Pattern empty)
-Set the same setting in the analysis setting but in a correct way.
-Run the analysis with the following arguments defined: -Dsonar.analysis.mode=publish -Dsonar.pullrequest.branch= -Dsonar.pullrequest.key= -Dsonar.pullrequest.base=master
Expected behavior
It is expected to not create faulty Pull Request when the analysis fails.
Software Versions
SonarQube Version: 9.9.4 and 9.9.6
Plugin Version: 1.14.0
The text was updated successfully, but these errors were encountered:
Describe the bug
The branch plugin can break SonarQube projects in some cases when sonar.pullrequest.branch is defined in the analysis.
Users have reported reported unreachable projects, on closer inspection the error is caused by one or more faulty project pull request, that shouldn't exist in the first place. This completely blocks the access to the project on the GUI. Deleting the faulty pull requests through the API fixes the project.
Error message on GUI:
Closer inspection of the error:
To Reproduce
Steps to reproduce the behavior (1st option):
-Create a new project and run a branch analysis without ever running an analysis on the main branch.
-Arguments that were used when running the analysis: -Dsonar.analysis.mode=publish -Dsonar.pullrequest.branch= -Dsonar.pullrequest.key= -Dsonar.pullrequest.base=master
Steps to reproduce the behavior (2nd option):
-Set a faulty server side project setting (for example: sonar.issue.ignore.multicriteria and leaving the File Path Pattern empty)
-Set the same setting in the analysis setting but in a correct way.
-Run the analysis with the following arguments defined: -Dsonar.analysis.mode=publish -Dsonar.pullrequest.branch= -Dsonar.pullrequest.key= -Dsonar.pullrequest.base=master
Expected behavior
It is expected to not create faulty Pull Request when the analysis fails.
Software Versions
The text was updated successfully, but these errors were encountered: