当我运行jenkins任务时,我得到以下错误
17:12:49.738 INFO - Sensor SCM Sensor...
17:12:49.847 INFO - SCM provider for this project is: svn
17:12:49.847 INFO - Retrieve SCM blame information...
17:12:49.863 INFO - 843 files to be analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 1:11.026s
Final Memory: 31M/214M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: The svn blame command [svn blame --xml --non-interactive -x -w src/com/musigma/muPDNA/RESTClient/ServiceClient.as] failed: svn: E215004:
Run Code Online (Sandbox Code Playgroud)
当我尝试删除.svn文件夹并运行声纳运行器时,它工作正常.我试图忽略svn文件和svn文件夹,我也尝试在声纳中禁用blame选项,但没有任何可能的结果.
这是正确的方法吗?
它没有提到任何地方.我想消除由blame(svn)引起的错误,但我不想在分析之前删除".svn"文件夹(这是我能够让它工作的唯一方法)
我在做什么? 我目前正在为前端应用程序设置持续集成/交付管道.我们计划使用SonarQube作为代码质量工具,并希望在SONAR中导入junit测试结果/代码覆盖率以进行进一步分析.
我能够成功地将javascript代码覆盖率报告导入SONAR.我们正在使用Gulp/Karma/PhantomJS/Jasmine等,并使用Karma coverage/Junit记者生成测试结果.Junit测试文件名是TEST-xunit.xml.
我被困在哪里? 我需要您的帮助/专家指导,将Javascript测试结果导入SONAR.我尝试了不同的东西,但不知何故无法将单元测试源/结果导入SONAR.
我有什么尝试过的? 之前我们使用的是SONAR Runner 2.3,SONAR Qube 4.5/Javascript插件2.2并且能够导入Junit高级别统计数据,例如测试通过/失败等.但是,我们无法导航到单个测试以查看哪个测试通过/失败.
在进一步研究时,注意到如果找不到测试源,Javascript插件2.3为场景添加了更多消息.此外,还有一些其他依赖项,因此将SONAR qube升级到5.0.使用SONAR runner 2.4测试并观察以下消息.目前,高级别的统计数据也没有被导入.
JSTestDriverSensor.java 代码来自github上的SONAR Javascript插件
LOG.warn("Test result will not be saved for test class \"{}\", because SonarQube associated resource has not been found using file name: \"{}\"",
getUnitTestClassName(classKey), getUnitTestFileName(classKey));
Run Code Online (Sandbox Code Playgroud)
由SONAR gulp插件生成的sonar-runner.properties(使用SONAR Runner 2.3)
sonar.projectBaseDir=C:/xxxxx/homepage2
sonar.host.url=http://xxxxx:9000/sonarqube/
sonar.jdbc.url=jdbc:mysql:// xxxxx:3306/sonar
sonar.jdbc.username= xxxxx
sonar.jdbc.password= xxxxx
sonar.projectKey=homepage:0.0.0
sonar.projectName=homepage
sonar.projectVersion=0.0.0
sonar.sources=src/app,src/components
sonar.exclusions=src/**/*spec.js
sonar.tests=test
sonar.language=js
sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPath=reports/coverage/lcov.info
sonar.javascript.jstestdriver.reportsPath=reports/unit
Run Code Online (Sandbox Code Playgroud)
我甚至尝试过单独的SONAR runner 2.4安装,但不断收到相同的错误消息.
题? 1.必须有一些我忽略的东西,不知何故无法确定导致这种情况的原因.我想我要么设置测试目录路径错误,要么JSTestDriverSensor错误地解释测试目录文件.建议?2.首先,我只想导入一个示例junit xml文件,以查看它是否成功导入.之后,我可以修改karma junit generator输出以匹配输入junit xml.这里需要一些参考例子.
附上一些日志.我修改了junit xml来设置不同的类名,以查看JsTestDriverSensor是否找到它.但事实并非如此!
[23:31:24] 23:31:24.122 DEBUG …Run Code Online (Sandbox Code Playgroud) 我最近安装了最新版本的詹金斯,SonarQube 6.0(在单独的服务器上运行),当詹金斯的工作试图上载声纳扫描结果向SonarQube服务器,我收到以下错误:
'ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: org.sonarqube.ws.client.HttpException: Error 413 on http://****`
Run Code Online (Sandbox Code Playgroud)
可能是什么原因?声纳项目属性中的错误?
目前在我的项目中,组织存储库上的每个pull-Request都是由Jenkinsjenkinsfile中指定的自动构建的.当构建结束时,由Jenkinsgithub 发送的消息与该项目的构建状态一致.
我想将Sonar分析发送给pull-request的对话,但仅针对已经由pull请求更新的文件/代码.
赏金信息:
我在Maven Projects(Maven 3)的本地框中安装了SonarQube 3.7,我可以运行声纳并查看指标.但我无法以localhost:9000的管理员身份登录,安装后SonarQube的默认登录凭据是什么?
而且我也没有看到顶部栏上的"设置"链接!
我正在尝试使用此插件设置SonarQube来分析我的TypeScript项目:https://github.com/Pablissimo/SonarTsPlugin
但是,我遇到了如下错误:
> C:\sonarqube\sonar-runner-2.4\bin\sonar-runner.bat
...
INFO:
------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 3.006s
Final Memory: 18M/613M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: You must install a plugin that supports the language 'typescript'
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Run Code Online (Sandbox Code Playgroud)
我的设置: - …
我正在尝试将声纳分析集成到TeamCity构建过程中.我有一个NUnit构建步骤,它运行我的单元测试,然后运行dotCover覆盖.
我的下一步是声纳 - 跑步者.当前存在的配置是; gallio.mode = dotCover,sonar.gallio.mode = reuseReport但我还需要sonar.gallio.reports.path.
有人知道上一步生成的dotCover报告的路径吗?
我正在尝试在java中的项目上运行SonarQube.我配置了声纳属性文件并将其放在项目目录中.在运行sonar.bat时,会出现一个错误,要求定义必需参数.起初我认为我的属性文件是错误的,但我已经尝试了我能想到的一切.
这是当前的属性文件
# Required metadata
sonar.projectKey=_newtest2
sonar.projectName=NoSqlDataModeling
sonar.projectVersion=2.0
# Path to the parent source code directory.
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for source code from the directory containing
# the sonar-project.properties file.
sonar.sources=D:/eclipse workspace/NoSqlDataModeling
#Comma-separated paths to directories containing the binary files (directories with class files, in the case of Java).
sonar.binaries=D:/eclipse …Run Code Online (Sandbox Code Playgroud) 我正在使用sonarqube 4.5.4与mysql数据库.
在我的项目上运行分析时遇到了这个异常:
INFO o.d.m.sonar.runner.RunSonarVisitor - ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
2016-02-23 04:05:40.091Z INFO o.d.m.sonar.runner.RunSonarVisitor - ### The error may involve org.sonar.core.user.RoleMapper.insertGroupRole-Inline
2016-02-23 04:05:40.091Z INFO o.d.m.sonar.runner.RunSonarVisitor - ### The error occurred while setting parameters
2016-02-23 04:05:40.091Z INFO o.d.m.sonar.runner.RunSonarVisitor - ### SQL: INSERT INTO group_roles (group_id, resource_id, role) VALUES (?, ?, ?)
Run Code Online (Sandbox Code Playgroud)
这是输出 SHOW ENGINE INNODB STATUS:
=====================================
2016-02-23 11:54:18 2b4ff4306700 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated …Run Code Online (Sandbox Code Playgroud) 我们使用SonarQube 5.1.2使用Ant runner 2.2和Java pluging 3.12进行分析.我可以成功地分析我的项目.我只是不断收到此错误:
Java bytecode has not been made available to the analyzer. The org.sonar.java.bytecode.visitor.DependenciesVisitor@d678716, org.sonar.java.checks.unused.UnusedPrivateMethodCheck@58e28efd, CycleBetweenPackages rule are disabled.
Run Code Online (Sandbox Code Playgroud)
所以我需要配置我的sonar.java.binaries和sonar.java.test.binaries属性(遵循http://docs.sonarqube.org/display/PLUG/Java+Plugin+and+Bytecode).
我认为我做得正确:
<property name="project.dir" value="${basedir}/xalg.prj/h3_service_fo" />
<property name="sonar.java.binaries" location="${project.build.dir}/classes/main" />
<property name="sonar.java.test.binaries" value="${project.build.dir}/classes/test" />
Run Code Online (Sandbox Code Playgroud)
哪个解析为以上属性的以下有效目录:
basedir=D\:\\appl\\BuildAgent\\work\\H3\\src.prj\\java.prj
project.dir=D\:\\appl\\BuildAgent\\work\\H3\\src.prj\\java.prj/xalg.prj/h3_service_fo
sonar.java.binaries=D\:\\appl\\BuildAgent\\work\\H3\\src.prj\\java.prj\\xalg.prj\\h3_service_fo\\build\\classes\\main
sonar.java.test.binaries=D\:\\appl\\BuildAgent\\work\\H3\\src.prj\\java.prj/xalg.prj/h3_service_fo/build/classes/test
Run Code Online (Sandbox Code Playgroud)
但我一直在:
Java bytecode has not been made available to the analyzer. The org.sonar.java.bytecode.visitor.DependenciesVisitor@d678716, org.sonar.java.checks.unused.UnusedPrivateMethodCheck@58e28efd, CycleBetweenPackages rule are disabled.
Run Code Online (Sandbox Code Playgroud)
而对于我的生活,我无法弄清楚我需要给sonar.java.binaries和sonar.java.test.binaries属性的值.我甚至尝试使用sonar.binaries,它给了我以下输出:
Binary dirs: xalg.prj/h3_service_fo/build/classes
Run Code Online (Sandbox Code Playgroud)
我没有使用sonar.java.binaries或sonar.java.test.binaries.我也得到了:
JavaClasspath initialization...
sonar.binaries and sonar.libraries are deprecated since version 2.5 of sonar-java-plugin, please …Run Code Online (Sandbox Code Playgroud) sonar-runner ×10
sonarqube ×9
java ×4
jenkins ×2
deadlock ×1
dotcover ×1
github ×1
maven ×1
maven-3 ×1
mysql ×1
sonarqube5.1 ×1
svn ×1
teamcity ×1
teamcity-7.1 ×1
tortoisesvn ×1
typescript ×1