简体   繁体   English

我可以在Gerrit补丁上做声纳扫描吗?

[英]Can i do sonar scan on the Gerrit patch?

As part of my precheckin workflow in Gerrit I want to configure sonarqube to perform scan on the submitted patch, I am using sonar-gerrit plugin in my Jenkins and configured gerrit-trigger to run this analysis job. 作为我在Gerrit中的precheckin工作流程的一部分,我想配置sonarqube以对提交的补丁执行扫描,我在我的Jenkins中使用sonar-gerrit插件并配置gerrit-trigger来运行此分析工作。 This job is configured with preview mode and runs analysis but the the analysis happens on the repository which doesn't include the submitted patchset. 此作业配置了预览模式并运行分析,但分析发生在不包含已提交的补丁集的存储库中。 How can i ensure to run the analysis on the patchset? 如何确保在补丁集上运行分析?

Use the "$GERRIT_REFSPEC" variable to configure your job like the following: 使用“$ GERRIT_REFSPEC”变量来配置您的作业,如下所示:

在此输入图像描述

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

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