fix(secu): add SQ pipeline timeout (#3371)
This commit is contained in:
parent
3e4008e37e
commit
0620075b7a
|
@ -20,9 +20,11 @@ stage('Source') {
|
|||
withSonarQubeEnv('SonarQubeDev') {
|
||||
sh './centreon-build/jobs/plugins/plugins-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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue