问题描述
使用AmadeusIT声纳隐藏插件...
using the AmadeusIT sonar-stash plugin...
从main跳转到功能/冲刺后,我们在本地更新了代码,并添加,提交和推送到BitBucket,从而创建了提取请求.我们想进行扫描,以查看当前仅的问题,因为我们刚刚为其发布了PR ...我通过以下调用运行声纳扫描仪:
After branching from main for feature/sprint we updated code locally and added, committed and pushed to BitBucket, creating a pull request. We'd like to run a scan and see the issues presently only for the code we just issued a PR for... I run sonar-scanner with this invocation:
sonar-scanner -Dsonar.analysis.mode=preview -Dsonar.stash.pullrequest.id=8 -
Dsonar.stash.repository=StaticAnalysisPOC -Dsonar.stash.login=myLogin -
Dsonar.stash.password=myPassword -Dsonar.login=sonarLogin -
Dsonar.password=sonarPword -
Dsonar.projectKey=com.company.static:StaticAnalysisPOC -
Dsonar.projectName=stat -Dsonar.projectVersion=1.0.3
输出为:
INFO: Executing post-job org.sonar.plugins.stash.StashIssueReportingPostJob
INFO: org.sonar.plugins.stash.StashIssueReportingPostJob@43294e9b
not enabled, skipping
技术堆栈/版本;
SonarQube 6.x-最新
SonarQube 6.x - latest
BitBucket(正式版)4.x-最新
BitBucket (on prem) 4.x - latest
谢谢!
推荐答案
根据插件的代码,您必须添加参数 -Dsonar.stash.notification = true
According to the code of the plugin, you have to add parameter -Dsonar.stash.notification=true
这篇关于StashIssueReportingPostJob未启用-如何启用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!