mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-06 19:46:05 +02:00
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:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -125,7 +125,7 @@ boolean isMainBranch() {
|
|||||||
|
|
||||||
boolean waitForQualityGateWebhookToBeCalled() {
|
boolean waitForQualityGateWebhookToBeCalled() {
|
||||||
boolean isQualityGateSucceeded = true
|
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()
|
def qGate = waitForQualityGate()
|
||||||
echo "SonarQube Quality Gate status: ${qGate.status}"
|
echo "SonarQube Quality Gate status: ${qGate.status}"
|
||||||
if (qGate.status != 'OK') {
|
if (qGate.status != 'OK') {
|
||||||
|
|||||||
Reference in New Issue
Block a user