Welcome to the Linux Foundation Forum!

Chapter 11 Subsection: Defining a Quality Gate for the Instavote Project (Quality Gate endless step)

Just in case someone else is having an endless stage "Quality Gate" because keeps waiting for the SonarQube task result and never get "Success" or "Failure".
I added agent any in the step code. Like this.

stage("Quality Gate") {
agent any
steps {
timeout(time: 1, unit: 'MINUTES') {
// Parameter indicates whether to set pipeline to UNSTABLE if Quality Gate fails
// true = set pipeline to UNSTABLE, false = don't
waitForQualityGate abortPipeline: true


  • redrom35
    redrom35 Posts: 5

    Thanks @julian.muhlberger , you saved my day!

  • thanks !! I will try this out!! I was having the same problem after the final changes to the github repository ... I never figured out why... after getting this message in the console:

    Checking status of SonarQube task 'AYP2nfJCcEVQJG5QjxcR' on server 'sonar-instavote'
    SonarQube task 'AYP2nfJCcEVQJG5QjxcR' status is 'IN_PROGRESS'

    It could be hours before it failed, but its not like its failed, I never got this color before this part:

    the fact that you cannot search for topics only within a specific class forum doesn't help!!!!


Upcoming Training