Added missing steps.

This commit is contained in:
Christopher Jones 2017-09-06 08:27:01 -05:00
parent 0aea718e5e
commit 71c6368f96

5
Jenkinsfile vendored
View file

@ -17,6 +17,8 @@ pipeline {
} }
stage('SonarQube analysis') { stage('SonarQube analysis') {
agent any
steps {
withSonarQubeEnv('SonarQube Scanner 3.0.3.778') { withSonarQubeEnv('SonarQube Scanner 3.0.3.778') {
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' + sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' +
'-f pom.xml ' + '-f pom.xml ' +
@ -30,8 +32,10 @@ pipeline {
'-Dsonar.exclusions=**/*Test*/**' '-Dsonar.exclusions=**/*Test*/**'
} }
} }
}
stage("SonarQube Quality Gate") { stage("SonarQube Quality Gate") {
steps {
timeout(time: 1, unit: 'HOURS') { timeout(time: 1, unit: 'HOURS') {
def qg = waitForQualityGate() def qg = waitForQualityGate()
if (qg.status != 'OK') { if (qg.status != 'OK') {
@ -39,6 +43,7 @@ pipeline {
} }
} }
} }
}
stage('Approve for QA') { stage('Approve for QA') {
agent any agent any