How can I use git as the scm provider in sonarqube 5.0 ( using sonar-runner )

后端 未结 1 1416
情书的邮戳
情书的邮戳 2020-12-06 06:26

I following the official support of sonarqub http://docs.sonarqube.org/display/SONAR/SCM+support

and I got the error at above.

did I miss something need to c

相关标签:
1条回答
  • 2020-12-06 06:49

    This is because when running an analysis, SonarQube expects that all files should be committed.

    Indeed, SonarQube assumes that when you run a standard analysis (that pushes data to the server), there should not be any uncommitted changes on a single file of the project, because this would potentially push information that won't be relevant with the real source code on the repository. That's why the analysis will fail.

    This is obviously not the case when you run a preview analysis: as this kind of analysis does not push data to the server and only reports issues locally, then it's not a problem to have uncommitted changes and the analysis will therefore not fail.

    I've updated the documentation to make this clearer.

    0 讨论(0)
提交回复
热议问题