Commit cb1b1beb authored by sc979's avatar sc979 Committed by schapron
Browse files

fix(secu): add SQ pipeline timeout (#48)

parent 307afa4c
......@@ -116,9 +116,11 @@ try {
withSonarQubeEnv('SonarQubeDev') {
sh "./centreon-build/jobs/widgets/${serie}/widget-analysis.sh"
}
def qualityGate = waitForQualityGate()
if (qualityGate.status != 'OK') {
currentBuild.result = 'FAIL'
timeout(time: 10, unit: 'MINUTES') {
def qualityGate = waitForQualityGate()
if (qualityGate.status != 'OK') {
currentBuild.result = 'FAIL'
}
}
}
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment