Closed Soyn closed 5 years ago
How did you solve it?
What's your problem? I add the parameters approvalFeatureEnabled=true
, It's hard to know your issue when i don't have other info in your project. This plugin is running well in my project. Most problem i encounter are the wrong spelling of params. Please check your config.
Expected Behavior
After I install the plugin on my sonarQube server. I do the config in my jenkins pipeline, but it does not work. After the sonarQube analysis, the plugin should write comments on my bitbucket. But it did not.
Actual Behavior
This is my config:
sh "${sonarqubeScannerHome}/bin/sonar-scanner -e -X \ -Dsonar.analysis.mode=issues \ -Dsonar.verbose=true \ -Dsonar.bitbucket.repoSlug=test-sonarqube \ -Dsoanr.bitbucket.accountName=myName \ -Dsonar.bitbucket.oauthClientKey=myoauthKey \ -Dsonar.bitbucket.oauthClientSecret=myOAuthSecret \ -Dsonar.bitbucket.branchName=${env.BANCH_NAME} \ -Dsonar.bitbucket.pullRequestId=2 \ -Dsonar.host.url=mySonrQubeServerURL \ -Dsonar.login=admin \ -Dsonar.password=admin \ -Dsonar.bitbucket.minSeverity=INFO \ -Dsonar.bitbucket.approvalFeatureEnabled=false \ -Dsonar.bitbucket.buildStatusEnabled=false \ -Dsonar.bitbucket.maxSeverityApprovalLevel=MAJOR"
when i execute the shell in my Jenkins pipeline, following is the output of the Jenkins log:I think the problem is
'Sonar Plug-in for Bitbucket Cloud' skipped because one of the required properties is missing
. But i don't know which property is missing?### SonarQube Server
Above is the screenshot of my sonarqube. And in bitbucket, doesn't have any comments in my pull request.
Plug-in version, SonarQube version, CI system, build type
Plugin Version: 1.2.3 SonarQUbe version: 6.7.5 CI: Jenkins Buid type: Sonar Scanner