mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix(secu): add SQ pipeline timeout (#3371)
This commit is contained in:
parent
645f342ee5
commit
d95fd527fa
2
centreon-plugins/Jenkinsfile
vendored
2
centreon-plugins/Jenkinsfile
vendored
@ -20,12 +20,14 @@ 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') {
|
||||||
parallel 'all': {
|
parallel 'all': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user