【发布时间】:2018-10-07 22:18:47
【问题描述】:
我尝试使用 jenkins 和 sonarqube 分析一个 .net 项目。 当我尝试在没有 jenkins 的情况下在我的工作站上本地分析项目时,分析工作并且结果被上传并显示在 sonarqube 中。 当我将 jenkins 与 sonar msbuild 结合使用并执行相同的 cmd 时,我收到错误消息
: WARNING: An illegal reflective access operation has occurred
WARNING: WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/C:/Users/xyz/.sonar/cache/132aaa5c3a6da2c09af83d327b1fc182/sonar-javascript-plugin-4.1.0.6085.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1
WARNING: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: WARNING: All illegal access operations will be denied in a future release
WARNING: WARN: Analyzer working directory does not exist: 'D:\Jenkins\workspace\GLB\.sonarqube\out\2\output-cs'. Analyzer results won't be loaded from this directory.
据我所知,这是本地工作版本与 jenkins 不工作版本之间的唯一区别。
我已经投入了大量时间进行调查和研究,但没有找到解决方案。
亲切的问候
【问题讨论】:
标签: jenkins msbuild sonarqube sonarqube-scan