Hi,
about two weeks ago my SonarCloud pipeline stopped working. I use the Azure DevOps extension for the analysis steps. My project consists of Typescript and Javascript code.
The error i get is:
java.lang.IllegalStateException: The bridge server is unresponsive. It might be because you don’t have enough memory, so please go see the troubleshooting section: JavaScript, TypeScript, CSS | SonarQube Server Documentation
I already tried all kinds of memory improvements. I increased the memory of my agent from 7GB to 18GB. I increaded node.maxspace to 4096 and 8192. I increased java memory to 2GB.
Nothing changed the error. i also got it down to 6 .spec files in my tests, that are quite small. If i excempt them from analysis it works again.
My Scanner command is:
- task: SonarCloudPrepare@3
inputs:
SonarQube: 'sonarcloud'
organization: .....
scannerMode: 'CLI'
configMode: 'manual'
cliProjectKey: '.....'
cliProjectName: '.....'
cliSources: '.'
extraProperties: |
sonar.verbose=true
sonar.sources=src, server
sonar.inclusions=**/*.?s, **/*.?sx
sonar.exclusions=**/*spec.?s, **/tests/**, **/test/**
sonar.tests=.
sonar.test.inclusions=**/*spec.?s, **/tests/**, **/test/**
sonar.test.exclusions=**/*.html,
sonar.javascript.node.maxspace=4096
sonar.sourceEncoding=UTF-8
sonar.javascript.node.debugMemory=true
- task: SonarCloudAnalyze@3
inputs:
jdkversion: 'JAVA_HOME'
continueOnError: true
displayName: 'Sonarcloud'
- task: SonarCloudPublish@3
continueOnError: true
inputs:
pollingTimeoutSec: '300'
Are there any more things i can do about it?
best regards,
Sebastian