Sonarcloud added to jenkins steps

This commit is contained in:
Natalia Villegas 2018-12-16 22:52:26 -03:00
parent d39d496a42
commit 60cc11f9a2

6
Jenkinsfile vendored
View file

@ -21,6 +21,12 @@ pipeline {
sh 'docker push $DOCKER_USER/pet-clinic:latest'
}
}
stage('Sonar') {
steps {
sh 'mvn sonar:sonar -Dsonar.projectKey=villegasnaty_spring-petclinic -Dsonar.organization=villegasnaty-github -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=5f3fd10f7702318ee919ea4d55890502510b2448'
}
}
stage('Run local container') {