简体   繁体   English

在詹金斯发送电子邮件报告声纳扫描仪

[英]Send email report sonar scanner in jenkins

Please help Me getting result of sonar scanner in jenkins to send email report. 请帮助我在詹金斯获得声纳扫描仪的结果以发送电子邮件报告。

I can get sonar scanner's id: 我可以获得声纳扫描仪的ID:

${it.getAction('hudson.plugins.sonar.action.SonarAnalysisAction').getCeTaskId()}

But I dont get any status process . 但是我没有任何身份程序。

(I am using ext-email report) (我正在使用外部电子邮件报告)

I assume you want to get quality gate status. 我假设您想获得质量门的状态。 You know that an important part of the analysis (like measure aggregation and quality gate check) is made on SonarQube server asynchronously. 您知道分析的重要部分(例如度量汇总和质量门控)是在SonarQube服务器上异步进行的。 We have implemented a Jenkins Pipeline step named waitForQualityGate() that will pause your pipeline until processing is done on SonarQube side, and return the quality gate status. 我们已经实现了一个名为waitForQualityGate()的Jenkins管道步骤,该步骤将暂停管道,直到在SonarQube一侧完成处理,并返回质量门状态为止。

If you want to do something similar for an old style Jenkins job, you'll have to implement something similar on your own. 如果您想对Jenkins的旧样式做类似的事情,则必须自己实现类似的事情。 For now we don't plan to backport this feature. 目前,我们不打算向后移植此功能。 The main reason is that doing this "wait" in a normal Job will occupy a slave for nothing. 主要原因是,在正常的Job中执行此“等待”将无所事事地占据奴隶。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM