简体   繁体   English

如何在詹金斯中为声纳曲配置TSLint插件?

[英]How to configure the TSLint plugin for sonarqube in Jenkins?

I installed the TSLint plugin for sonarqube in my Jenkins server https://github.com/Pablissimo/SonarTsPlugin . 我在Jenkins服务器https://github.com/Pablissimo/SonarTsPlugin中为sonarqube安装了TSLint插件。 But its not described the git page as to how to set the configuration properties and values. 但是它没有描述关于如何设置配置属性和值的git页面。 How to specify the source directory, how to ignore test directory are two main concerns. 如何指定源目录,如何忽略测试目录是两个主要问题。 Can some one provide an example configuration property set with basic configurations that I can use in my Jenkins? 有人可以提供一个示例配置属性集,其中包含可以在我的Jenkins中使用的基本配置吗?

You can use a sonar-project.properties file for configuration. 您可以使用sonar-project.properties文件进行配置。 There are some example projects provided by SonarSource that might be helpful. SonarSource提供的一些示例项目可能会有所帮助。

Here's a quick example of how you could set the source directory, test directory, and files to ignore: 这是一个简单的示例,说明如何设置源目录,测试目录和文件以使其忽略:

sonar.sources=client-app/src
sonar.tests=client-app/test
sonar.exclusions=client-app/node_modules, client-app/lib

UPDATE: 更新:

The sample projects have moved here . 样本项目已移至此处 There isn't a JavaScript example anymore, but the syntax would be the same for any language. 不再有JavaScript示例,但是任何语言的语法都相同。

The documentation for parameters that can be set is currently located here: https://docs.sonarqube.org/display/SONAR/Analysis+Parameters 当前可设置参数的文档位于此处: https : //docs.sonarqube.org/display/SONAR/Analysis+Parameters

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

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