Skip to content
Snippets Groups Projects
Unverified Commit 4f2789dd authored by sc979's avatar sc979 Committed by GitHub
Browse files

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

parent 90897080
No related branches found
No related tags found
No related merge requests found
...@@ -116,9 +116,11 @@ try { ...@@ -116,9 +116,11 @@ try {
withSonarQubeEnv('SonarQubeDev') { withSonarQubeEnv('SonarQubeDev') {
sh "./centreon-build/jobs/widgets/${serie}/widget-analysis.sh" sh "./centreon-build/jobs/widgets/${serie}/widget-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'
}
} }
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment