From a9c68de4afe5e187e7f88b6faa6656746331ab36 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Fri, 8 Sep 2017 09:14:53 -0500 Subject: [PATCH] Removed code that has now been pushed into libraries. --- Jenkinsfile | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1a07469b0..ecdce01b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,16 +14,6 @@ pipeline { stage('SonarQube Analysis') { steps { - /* - script { - scannerHome = tool 'SonarQube_Scanner_3.0.3.778'; - } - - withSonarQubeEnv('Staging') { - echo "${scannerHome}" - sh "${scannerHome}/bin/sonar-scanner" - } - */ startSonarQubeAnalysis "SonarQube_Scanner_3.0.3.778", "Staging", "${env.WORKSPACE}", "sonar-project.properties" } } @@ -33,23 +23,6 @@ pipeline { agent none steps { - /* - timeout(time: 1, unit: 'HOURS') { - script { - // these are the statuses that we'll allow - def allowableQualityGateStatuses = ['OK', 'WARN'] - - // we need to wait for the quality check to complete - def qualityGate = waitForQualityGate() - - // if the status we got back, isn't one of the logal ones, then - // we need to fail the build - if (!allowableQualityGateStatuses.contains(qualityGate.status)) { - error "Pipeline aborted due to quality gate failure: ${qualityGate.status}" - } - } - } - */ waitForSonarQubeAnalysis 60, ['OK','WARN'] } }