You're not authorized to analyze this proiect or the proiect doesn't exist on sonarqube and you're not authorized to create it.
Please contact an administrator.
解决办法:
在sonarqube里,把token生成了一个type为global的(原来用的是type为project的),然后在jenkins里改用这个新token,然后就神奇的好了
原来虽然type是project的,可是确实是指定的我要扫描的这一个项目,不应该有问题,虽然解决了,但是不知道为什么之前的配置不行,按理说应该是可以的
报错日志参考:
14:24:08.495 INFO ------------- Run sensors on module health
14:24:08.573 INFO Load metrics repository
14:24:08.591 INFO Load metrics repository (done) | time=19ms
14:24:09.196 INFO Sensor JavaSensor [java]
14:24:09.212 INFO Server-side caching is enabled. The Java analyzer will not try to leverage data from a previous a