SonarQube task status is 'PENDING'

I use sonarqube in my jenkins pipeline to analyze all my java applications
sonarscanner analyze the projects successfully and resturn result ok

but when I run analysis on multiple branches, I get this error

Checking status of SonarQube task ‘AYf_Oza01W9mx14FP_VQ’ on server ‘sonarqube-9.9’
SonarQube task ‘AYf_Oza01W9mx14FP_VQ’ status is ‘PENDING’

it waits on this stage for a long time

although I use jenkins and gitea as scm

my sonarqube is local datacenter version on a centos 7

this is my pipeline configuration after analyze was successful
sleep time: 30000, unit: 'MILLISECONDS'
timeout(time: 5, unit: ‘MINUTES’) {
def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"


Have you configured the webhook as described in the documentation for the Jenkins extension for SonarQube?

  • Configure a webhook in your SonarQube server pointing to <your Jenkins instance>/sonarqube-webhook/

Hi Colin
No I haven not
but when I configured it, the webhook does not wook and I get Service unreachable

Is your Jenkins instance accessible from your SonarQube instance? What URL did you use for the webhook?