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

2
Jenkinsfile vendored
View File

@ -20,11 +20,13 @@ stage('Source') {
withSonarQubeEnv('SonarQubeDev') { withSonarQubeEnv('SonarQubeDev') {
sh './centreon-build/jobs/plugins/plugins-analysis.sh' sh './centreon-build/jobs/plugins/plugins-analysis.sh'
} }
timeout(time: 10, unit: 'MINUTES') {
def qualityGate = waitForQualityGate() def qualityGate = waitForQualityGate()
if (qualityGate.status != 'OK') { if (qualityGate.status != 'OK') {
currentBuild.result = 'FAIL' currentBuild.result = 'FAIL'
} }
} }
}
} }
stage('RPM Packaging') { stage('RPM Packaging') {