• <bdo id='pIUZG'></bdo><ul id='pIUZG'></ul>

      <small id='pIUZG'></small><noframes id='pIUZG'>

        <tfoot id='pIUZG'></tfoot><legend id='pIUZG'><style id='pIUZG'><dir id='pIUZG'><q id='pIUZG'></q></dir></style></legend>
        <i id='pIUZG'><tr id='pIUZG'><dt id='pIUZG'><q id='pIUZG'><span id='pIUZG'><b id='pIUZG'><form id='pIUZG'><ins id='pIUZG'></ins><ul id='pIUZG'></ul><sub id='pIUZG'></sub></form><legend id='pIUZG'></legend><bdo id='pIUZG'><pre id='pIUZG'><center id='pIUZG'></center></pre></bdo></b><th id='pIUZG'></th></span></q></dt></tr></i><div id='pIUZG'><tfoot id='pIUZG'></tfoot><dl id='pIUZG'><fieldset id='pIUZG'></fieldset></dl></div>
      1. 错误:sonar.sources 的值无效

        ERROR: Invalid value of sonar.sources(错误:sonar.sources 的值无效)
        <legend id='MEiHL'><style id='MEiHL'><dir id='MEiHL'><q id='MEiHL'></q></dir></style></legend><tfoot id='MEiHL'></tfoot>

        <small id='MEiHL'></small><noframes id='MEiHL'>

          <bdo id='MEiHL'></bdo><ul id='MEiHL'></ul>

            <tbody id='MEiHL'></tbody>
              • <i id='MEiHL'><tr id='MEiHL'><dt id='MEiHL'><q id='MEiHL'><span id='MEiHL'><b id='MEiHL'><form id='MEiHL'><ins id='MEiHL'></ins><ul id='MEiHL'></ul><sub id='MEiHL'></sub></form><legend id='MEiHL'></legend><bdo id='MEiHL'><pre id='MEiHL'><center id='MEiHL'></center></pre></bdo></b><th id='MEiHL'></th></span></q></dt></tr></i><div id='MEiHL'><tfoot id='MEiHL'></tfoot><dl id='MEiHL'><fieldset id='MEiHL'></fieldset></dl></div>

                  本文介绍了错误:sonar.sources 的值无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  试图运行 sonartest,但它说:

                  Trying to running sonartest but it's getting failed saying :

                  我的詹金斯控制台输出:

                  My jenkins console output:

                  Started by user Badal Singh
                  Building on master in workspace C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTest
                   > C:Program Files (x86)Gitingit.exe rev-parse --is-inside-work-tree # timeout=10
                  Fetching changes from the remote Git repository
                   > C:Program Files (x86)Gitingit.exe config remote.origin.url https://github.com/singhbad/Bruce.git # timeout=10
                  Fetching upstream changes from https://github.com/singhbad/Bruce.git
                   > C:Program Files (x86)Gitingit.exe --version # timeout=10
                  using GIT_ASKPASS to set credentials BruceGit
                   > C:Program Files (x86)Gitingit.exe fetch --tags --progress https://github.com/singhbad/Bruce.git +refs/heads/*:refs/remotes/origin/*
                   > C:Program Files (x86)Gitingit.exe rev-parse "refs/remotes/origin/Metapool^{commit}" # timeout=10
                   > C:Program Files (x86)Gitingit.exe rev-parse "refs/remotes/origin/origin/Metapool^{commit}" # timeout=10
                  Checking out Revision 0f59d8b3fd664144cc55e85f44be7cdfab224831 (refs/remotes/origin/Metapool)
                  Commit message: "Commit for metapool"
                   > C:Program Files (x86)Gitingit.exe config core.sparsecheckout # timeout=10
                   > C:Program Files (x86)Gitingit.exe checkout -f 0f59d8b3fd664144cc55e85f44be7cdfab224831
                   > C:Program Files (x86)Gitingit.exe rev-list 0f59d8b3fd664144cc55e85f44be7cdfab224831 # timeout=10
                  [SonaTest] $ "C:Program Files (x86)Jenkins	oolshudson.plugins.sonar.SonarRunnerInstallationSonaScaninsonar-scanner.bat" -e -Dsonar.host.url=http://localhost:9000 ******** "-Dsonar.projectBaseDir=C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTest"
                  INFO: Option -e/--errors is no longer supported and will be ignored
                  INFO: Scanner configuration file: C:Program Files (x86)Jenkins	oolshudson.plugins.sonar.SonarRunnerInstallationSonaScanin..confsonar-scanner.properties
                  INFO: Project root configuration file: NONE
                  INFO: SonarQube Scanner 3.0.3.778
                  INFO: Java 1.8.0_73 Oracle Corporation (64-bit)
                  INFO: Windows 10 10.0 amd64
                  INFO: User cache: C:WINDOWSsystem32configsystemprofile.sonarcache
                  INFO: Publish mode
                  INFO: Load global settings
                  INFO: Load global settings (done) | time=524ms
                  INFO: Server id: AWBWzyK1kTiY3x_K-rPE
                  INFO: User cache: C:WINDOWSsystem32configsystemprofile.sonarcache
                  INFO: Load plugins index
                  INFO: Load plugins index (done) | time=266ms
                  INFO: SonarQube server 6.7.0
                  INFO: Default locale: "en_IN", source code encoding: "windows-1252" (analysis is platform dependent)
                  INFO: Process project properties
                  ERROR: Invalid value of sonar.sources for App sonar.projectBaseDir= C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTestNumberGenerator
                  INFO: ------------------------------------------------------------------------
                  INFO: EXECUTION FAILURE
                  INFO: ------------------------------------------------------------------------
                  INFO: Total time: 12.706s
                  INFO: Final Memory: 40M/92M
                  INFO: ------------------------------------------------------------------------
                  ERROR: Error during SonarQube Scanner execution
                  ERROR: The folder 'C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTestNumberGeneratorsrcmainjavacommkyong sonar.language=java' does not exist for 'App sonar.projectBaseDir= C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTestNumberGenerator' (base directory = C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTest)
                  ERROR: 
                  ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
                  ERROR: SonarQube scanner exited with non-zero code: 1
                  Finished: FAILURE
                  

                  如何解决这个错误信息?

                  How to solve this error message?

                  推荐答案

                  我看到了错误:

                  ERROR: The folder 'C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTestNumberGeneratorsrcmainjavacommkyong sonar.language=java' 
                  does not exist for 'App sonar.projectBaseDir= C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTestNumberGenerator' 
                  (base directory = C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTest)
                  

                  你开始了这个过程:

                  [SonaTest] $ "C:Program Files (x86)Jenkins	oolshudson.plugins.sonar.SonarRunnerInstallationSonaScaninsonar-scanner.bat" 
                  -e -Dsonar.host.url=http://localhost:9000 ********
                   "-Dsonar.projectBaseDir=C:Program Files (x86)JenkinsworkspaceDownStream-UpStreamSonaTest"
                  

                  确保将 加倍,以便 sonar.projectBaseDir 找到实际文件夹.

                  Make sure to double the in order for the sonar.projectBaseDir to find the actual folder.

                  即:

                  -Dsonar.projectBaseDir=C:\Program Files (x86)\Jenkins...
                  

                  请参阅分析源代码/分析参数.
                  OP Badal Singh 报告 在评论中:

                  这是由于我在 sonar.properties 文件中提到的错误文件夹路径

                  It was due to wrong folder path I have mentioned in sonar.properties file

                  这篇关于错误:sonar.sources 的值无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Slf4j LoggerFactory.getLogger and sonarqube(Slf4j LoggerFactory.getLogger 和 sonarqube)
                  Security - Array is stored directly(安全性 - 数组直接存储)
                  SonarQube quot;Class Not Foundquot; during Main AST Scan(SonarQube“找不到类在主 AST 扫描期间)
                  Integrate Spock#39;s test with Sonar(将 Spock 的测试与声纳集成)
                  How do I make Hudson/Jenkins fail if Sonar thresholds are breached?(如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?)
                  automatically add curly brackets to all if/else/for/while etc. in a java code-base(自动将大括号添加到 java 代码库中的所有 if/else/for/while 等)

                  <small id='W9132'></small><noframes id='W9132'>

                    • <bdo id='W9132'></bdo><ul id='W9132'></ul>

                          <tfoot id='W9132'></tfoot>

                          <i id='W9132'><tr id='W9132'><dt id='W9132'><q id='W9132'><span id='W9132'><b id='W9132'><form id='W9132'><ins id='W9132'></ins><ul id='W9132'></ul><sub id='W9132'></sub></form><legend id='W9132'></legend><bdo id='W9132'><pre id='W9132'><center id='W9132'></center></pre></bdo></b><th id='W9132'></th></span></q></dt></tr></i><div id='W9132'><tfoot id='W9132'></tfoot><dl id='W9132'><fieldset id='W9132'></fieldset></dl></div>
                            <tbody id='W9132'></tbody>
                          <legend id='W9132'><style id='W9132'><dir id='W9132'><q id='W9132'></q></dir></style></legend>