Windows机器上詹金斯中的sonarQube扫描错误

我正在尝试从我的jenkins节点运行soanrQube扫描,Sonar扫描仪的版本是Sonarqube Scanner 3.1.0.1141 Sonarqube服务器是Sonarqube服务器5.6.4。出现以下错误,任何人都可以帮我这个忙。

05:13:57.811 DEBUG: Execution execute
    05:13:58.100 DEBUG: Publish global mode
    05:13:58.193 INFO: Load global repositories
    05:13:58.243 DEBUG: GET 401 http://XXXXXXXXXXXXX/batch/global | time=50ms
    05:13:58.244 INFO: ------------------------------------------------------------------------
    05:13:58.245 INFO: EXECUTION FAILURE
    05:13:58.245 INFO: ------------------------------------------------------------------------
    05:13:58.245 INFO: Total time: 1.179s
    05:13:58.279 INFO: Final Memory: 9M/491M
    05:13:58.279 INFO: ------------------------------------------------------------------------
    05:13:58.279 ERROR: Error during Sonarqube Scanner execution
    05:13:58.280 ERROR: Unable to load component class org.sonar.batch.bootstrap.BatchPluginInstaller
    05:13:58.280 ERROR: Caused by: Unable to load component class org.sonar.home.cache.FileCache
    05:13:58.280 ERROR: Caused by: Unable to load component class org.sonar.batch.bootstrap.GlobalSettings
    05:13:58.280 ERROR: Caused by: Unable to load component class org.sonar.scanner.protocol.input.GlobalRepositories
    05:13:58.280 ERROR: Caused by: Not authorized. Please check the properties sonar.login and sonar.password.
    05:13:58.280 ERROR: 
    05:13:58.280 ERROR: Re-run Sonarqube Scanner using the -X switch to enable full debug logging.
    Picked up _JAVA_OPTIONS: -Xmx8192m
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! ahp@0.0.0 sonar: `sonar-scanner`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the ahp@0.0.0 sonar script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\apps\node-v10.16.2-win-x64\_logs\2019-11-15T10_13_58_358Z-debug.log
baizhongzheng 回答:Windows机器上詹金斯中的sonarQube扫描错误

还有其他日志文件吗?您发布的内容并没有暗示发生了什么问题。您是否看过$ SONARQUBE_HOME / logs / web.log?那应该为您指明正确的方向。

,

通过提供正确的API令牌解决了该问题。那是身份验证问题。

本文链接:https://www.f2er.com/3096130.html

大家都在问