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

This commit is contained in:
sc979 2022-01-04 13:17:13 +01:00 committed by GitHub
parent 3e4008e37e
commit 0620075b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

8
Jenkinsfile vendored
View File

@ -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'
}
}
}
}