diff --git a/Jenkinsfile b/Jenkinsfile index e424e62f95..688930d227 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -83,10 +83,6 @@ node('docker') { stage('SonarQube') { def sonarQube = new SonarCloud(this, [sonarQubeEnv: 'sonarcloud.io-scm', sonarOrganization: 'scm-manager', integrationBranch: 'develop']) sonarQube.analyzeWith(mvn) - - if (!waitForQualityGateWebhookToBeCalled()) { - currentBuild.result = 'UNSTABLE' - } } if (isBuildSuccessful() && (isMainBranch() || isReleaseBranch())) { @@ -224,18 +220,6 @@ boolean isMainBranch() { return mainBranch.equals(env.BRANCH_NAME) } -boolean waitForQualityGateWebhookToBeCalled() { - boolean isQualityGateSucceeded = true - timeout(time: 10, unit: 'MINUTES') { // Needed when there is no webhook for example - def qGate = waitForQualityGate() - echo "SonarQube Quality Gate status: ${qGate.status}" - if (qGate.status != 'OK') { - isQualityGateSucceeded = false - } - } - return isQualityGateSucceeded -} - void withGPGEnvironment(def closure) { withCredentials([ file(credentialsId: 'oss-gpg-secring', variable: 'GPG_KEYRING'),