Hi
I am having some problems when calling the quality gates plugin from Jenkins using a declarative syntax
Using a scripted syntax, its really easy
stage("Quality Gate") {
timeout(time: 10, unit: 'MINUTES') {
def qg = waitForQualityGate()
if (qg.status != 'OK') {
error "Pipeline aborted due to quality gate failure: ${qg.status}"
}
}
But.. when moving it to a declarative model, how could i make it work?
Thanks