SonarQube: Fail to get bootstrap index from server: Status returned by url [http://hostname:9095/sonar/batch/index] is not valid: [403]

后端 未结 7 859
广开言路
广开言路 2021-01-04 04:37

I am trying to execute following maven command from jenkins job, mvn clean install sonar:sonar -Dsonar.host.url=http://hostname:9095/sonar -Dsonar.projectKey=mavensam

相关标签:
7条回答
  • 2021-01-04 05:29

    I think it's giving you the error because the program can't hit the endpoint you specified.

    You shouldn't be specifying the port if the URL already has a DNS mapping. For example, if http://sonar.yourcompany.com is already mapped to 123.23.22.10:9000

    So your -Dsonar.host.url flag should be: -Dsonar.host.url=http://sonar.yourcompany.com

    You don't need the /sonar at the end of http://sonar.yourcompany.com

    Also, sonar runs on port 9000, not 9095.

    0 讨论(0)
提交回复
热议问题