Hello,
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.
- task: SonarQubePrepare@7
displayName: 'SonarQube: Prepare analysis'
inputs:
SonarQube: 'Code Quality Validation Service Connection'
scannerMode: CLI
extraProperties: |
sonar.sources=src/
sonar.projectKey=abcdg-project
sonar.projectVersion=$(Build.BuildNumber)
sonar.lang.patterns.abap=**/*.abap,**/*.ab4,**/*.asprog
sonar.lang.patterns.xml=**/*.xml,**/*.xsd,**/*.xsl,**/*.config,**/*.flow
- task: SonarQubeAnalyze@7
displayName: 'SonarQube: Run code analysis'
inputs:
jdkversion: 'JAVA_HOME_17_X64'
- task: SonarQubePublish@7
displayName: 'SonarQube: Publish analysis results'
inputs:
pollingTimeoutSec: '300'
- Enterprise Edition v10.7 (96327)
- SonarQube(Prepare|Analyze|Publish)@7
- CI Azure DevOps
- APEX, CSS, JS, JSON, HTML, XML