Jenkins Pipeline is Getting Failed

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    a.SonarQube 9.9 Community Edition
  • how is SonarQube deployed: zip, Docker, Helm
    a.zip
  • what are you trying to achieve.
    a.Single Module Spring Boot project is working in Jenkins Pipeline. Multi Module Sping boot application is getting failed.
  • what have you tried so far to achieve this
    a.Jenkins Pipeline should pass with Multi Module Project.
stage('SonarQube Analysis') {
            steps {
                script {
                    def mvn = tool 'custom_maven'
                    withSonarQubeEnv('sonarqube-9.9') {
                        sh """
                            cd child module-1
                            ${mvn}/bin/mvn clean verify sonar:sonar -Pcoverage -Dsonar.projectKey=projectKey
                        """
                    }
                }
            }
        }

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

What’s the failure (specifically looking for logs, stacktrace…)

Hi Colin,

PFA the error. Is this related to Code or Configuration issue?

Hey there.

I don’t know, and I can’t tell from the logs where the issue is coming from.

  • Can you please provide a wider range of text-based logs?
  • Does your pipeline succeed without the sonar:sonar tasks?

Yes, Colin,

All my pipelines are working without SonarQube Stage.