withSonarQubeEnv block inside jenkinsfile giving us heap memory issues

The documentation includes general guidance on adding coding rules, including which languages support adding custom rules, and general guidance on how to go about it.
If the docs don’t answer your question, please tell us:

  • What language are you writing rules for?
    Java
  • What have you tried, and what’s your challenge / stumbling block
    when we run with withSonarQubeEnv block we are getting heap memory issues. wanted to check whats the exact cause for this. we tried to increase the Increase the heap memory for SonarQube analysis but not wokring.
    withSonarQubeEnv is this block mandatory for sonar quality gate condition? I saw most of the cases true.
    Please share the relevant code snippet, along with any error messages you’re encountering:

Hey there.

Can you share the exact error you’re getting? It’s also helpful to see exactly where in the pipeline you get the error.