将sonarqube与bitbucket集成的具体步骤是什么?

将sonarqube与bitbucket集成的具体步骤是什么?,sonarqube,teamcity,bitbucket,Sonarqube,Teamcity,Bitbucket,到目前为止我所做的: 1) 我使用TeamCity作为CI 2) 已经有一个SonarQube服务器启动并运行 3) 已经有一个Bitbucket帐户 4) 我将sonar-bitbucket-plugin-1.2.0.jar文件放在/extensions/plugins文件夹中。之后重新启动sonarqube服务器 5) 我向项目的每个模块添加了一个sonar.json文件,其中包含以下内容: { "sonarHost": "<sonarqube server ip add

到目前为止我所做的:

1) 我使用TeamCity作为CI

2) 已经有一个SonarQube服务器启动并运行

3) 已经有一个Bitbucket帐户

4) 我将sonar-bitbucket-plugin-1.2.0.jar文件放在/extensions/plugins文件夹中。之后重新启动sonarqube服务器

5) 我向项目的每个模块添加了一个sonar.json文件,其中包含以下内容:

{   
    "sonarHost": "<sonarqube server ip address>",
    "sonarProjectKey": "<sonarProjectKey taken from sonar host>"
}
对于apiKey属性,我使用了来自OAuth使用者的密钥或密码


我遗漏了什么?

您是否包含了?您的OAuth消费者的回拨URL是什么?
mvn clean verify sonar:sonar --batch-mode --errors -Dsonar.bitbucket.repoSlug="<repoSlug>" -Dsonar.bitbucket.accountName="<accountName>"-Dsonar.bitbucket.apiKey="<apiKey>" -Dsonar.bitbucket.branchName="<branchName>" -Dsonar.host.url="<serverUrl>" -Dsonar.analysis.mode=issues
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project dispatcher: Unable to load component class ch.mibex.bitbucket.sonar.client.BitbucketClient: [sonar4bitbucket] Either team-based API or an OAuth user must be given -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project dispatcher: Unable to load component class ch.mibex.bitbucket.sonar.client.BitbucketClient