Hello everyone. In my Jenkins pipeline I scan the code and send a report. 2 weeks ago, this pipe worked fine, but now these logs are displayed:
I noticed in the logs that projectName is passed empty, which is why a 400 code and an exception appear. Any ideas what could be wrong?
[2024-09-30T08:53:52.459Z] 11:53:50.781 DEBUG: Upload report 23377[2024-09-30T08:53:52.459Z] 11:53:51.119 DEBUG: POST 400 time=333ms 23378[2024-09-30T08:53:52.459Z] 11:53:51.152 DEBUG: eslint-bridge server will shutdown 23379[2024-09-30T08:53:57.796Z] 11:53:56.713 DEBUG: stylelint-bridge server will shutdown 23380[2024-09-30T08:54:02.055Z] 11:54:01.729 INFO: ------------------------------------------------------------------------ 23381[2024-09-30T08:54:02.055Z] 11:54:01.729 INFO: EXECUTION FAILURE 23382[2024-09-30T08:54:02.055Z] 11:54:01.729 INFO: ------------------------------------------------------------------------ 23383[2024-09-30T08:54:02.055Z] 11:54:01.730 INFO: Total time: 4:27.086s 23384[2024-09-30T08:54:02.657Z] 11:54:02.411 INFO: Final Memory: 900M/1992M 23385[2024-09-30T08:54:02.657Z] 11:54:02.411 INFO: ------------------------------------------------------------------------ 23386[2024-09-30T08:54:02.657Z] 11:54:02.411 ERROR: Error during SonarScanner execution 23387[2024-09-30T08:54:02.657Z] java.lang.IllegalStateException: closed
Hey there!
I’m not sure we can connect the two things immediately – but I first want to know what version of SonarQube you’re using.
Hello, 4.4.0.2170
Hi,
I think your Jenkins pipeline is failing because projectName
is empty, causing a 400
error when trying to upload the report….…
That’s the scanner version (probably?)
Your SonarQube version can be found in the footer of your SonarQube instance.
I think it would also help if you included the logs from your SonarQube server that show why the 400 was passed.
We use our own sonarqube server. The way it works is that it sends information about the scan directly to the page with the pull request. We ourselves noticed that projectName is passed empty, but the fact is that just a few weeks ago everything was fine.