Commit 05c66bfc authored by sc979's avatar sc979 Committed by schapron
Browse files

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

parent 15fcaf4c
......@@ -47,9 +47,11 @@ try {
// sonarQube step to get qualityGate result
stage('Quality gate') {
node("C++") {
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'
}
}
if ((currentBuild.result ?: 'SUCCESS') != 'SUCCESS') {
error("Quality gate failure: ${qualityGate.status}.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment