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



Upcoming Training