Template for a good bug report, formatted with Markdown:
-
versions used (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube: 8.1.0
Sonarscanner: 3.7.0.1746
Sonar Jenkins Plugin: 2.11 -
error observed
When usingwaitForQualityGate abortPipeline: true
in multibranch jenkins pipeline, its stuck forever, though task is already success as seen at/api/ce/task?id=AW-P2ZuutYXoduCHL0jS
. This is consistent.
Checking status of SonarQube task 'AW-P2ZuutYXoduCHL0jS' on server 'sonarqube'
SonarQube task 'AW-P2ZuutYXoduCHL0jS' status is 'IN_PROGRESS'
- steps to reproduce
Start an analysis in jenkins multibranch pipeline and usewaitForQualityGate abortPipeline: true
to wait for quality gate result. Its stuck atPENDING
orIN PROGRESS
step. Also tried:
def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
but didn’t work. Same, was stuck at Pending
state.
- potential workaround
Possibly have to manually call API to get status.
Please let us know a workaround if there.
Thanks.