fix(secu): add SQ pipeline timeout (#3371)
This commit is contained in:
parent
3e4008e37e
commit
0620075b7a
|
@ -20,9 +20,11 @@ stage('Source') {
|
||||||
withSonarQubeEnv('SonarQubeDev') {
|
withSonarQubeEnv('SonarQubeDev') {
|
||||||
sh './centreon-build/jobs/plugins/plugins-analysis.sh'
|
sh './centreon-build/jobs/plugins/plugins-analysis.sh'
|
||||||
}
|
}
|
||||||
def qualityGate = waitForQualityGate()
|
timeout(time: 10, unit: 'MINUTES') {
|
||||||
if (qualityGate.status != 'OK') {
|
def qualityGate = waitForQualityGate()
|
||||||
currentBuild.result = 'FAIL'
|
if (qualityGate.status != 'OK') {
|
||||||
|
currentBuild.result = 'FAIL'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue