Jenkins: Increases SonarCloud timeout to 5 minutes.

Every now and then sonarcloud is under pressure and needs longer
than 2 minutes to call our quality gate webhook.
This commit is contained in:
Johannes Schnatterer
2018-10-09 11:17:06 +02:00
parent 8b81898f7e
commit 24052d7896

2
Jenkinsfile vendored
View File

@@ -125,7 +125,7 @@ boolean isMainBranch() {
boolean waitForQualityGateWebhookToBeCalled() {
boolean isQualityGateSucceeded = true
timeout(time: 2, unit: 'MINUTES') { // Needed when there is no webhook for example
timeout(time: 5, unit: 'MINUTES') { // Needed when there is no webhook for example
def qGate = waitForQualityGate()
echo "SonarQube Quality Gate status: ${qGate.status}"
if (qGate.status != 'OK') {