Having been unable to find a solution on the forum or on the internet, I’m opening this topic because of an error at the end of the SonarQube Analyze task (lines 290 and 315 in log.txt).
Error observed:
##[error]16:04:50.736 ERROR Error during SonarScanner Engine execution
java.lang.RuntimeException: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.
[...]
Here is the YAML SonarQube’s tasks defined in my pipeline.
The sue you face is most likely related to your network/infrastructure configuration. In the past, I’ve seen other customers encounter this issue because their firewall blocked requests from reaching their Nginx proxy.
It might be worth asking your SonarQube admins (if that isn’t you) to help you test pointing a scan at your SonarQube server which bypasses anything sitting in front of it (like a proxy) to see if you can isolate the issue.
There’s also one report way back in 2016 where sonar.core.serverBaseURL was not set correctly. I haven’t seen any other reports of this sense then, but it’s worth a try (global Admnistration > General > Server base URL)