mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 21:45:49 +00:00
include sonarqube step - FIX - JUNIT
This commit is contained in:
parent
e477a3c299
commit
6caa8de16e
1 changed files with 4 additions and 4 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -7,14 +7,14 @@ node('Slave_AWS'){
|
||||||
{
|
{
|
||||||
//sh 'docker run --rm --name build_maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app;mvn clean install"'
|
//sh 'docker run --rm --name build_maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app;mvn clean install"'
|
||||||
}
|
}
|
||||||
stage('Unit Test')
|
|
||||||
{
|
|
||||||
junit 'target/surefire-reports/*.xml'
|
|
||||||
}
|
|
||||||
stage('Sonarqube')
|
stage('Sonarqube')
|
||||||
{
|
{
|
||||||
sh 'docker run --rm --name maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app; mvn clean install cobertura:cobertura -Dcobertura.report.format=xml sonar:sonar -Dsonar.host.url=http://34.205.24.188:9000"'
|
sh 'docker run --rm --name maven -v $(pwd):/app docker.io/maven:alpine bash -c "cd app; mvn clean install cobertura:cobertura -Dcobertura.report.format=xml sonar:sonar -Dsonar.host.url=http://34.205.24.188:9000"'
|
||||||
}
|
}
|
||||||
|
stage('Unit Test')
|
||||||
|
{
|
||||||
|
junit 'target/surefire-reports/*.xml'
|
||||||
|
}
|
||||||
stage('Archive artifact')
|
stage('Archive artifact')
|
||||||
{
|
{
|
||||||
archiveArtifacts 'target/spring-petclinic-1.5.1.jar'
|
archiveArtifacts 'target/spring-petclinic-1.5.1.jar'
|
||||||
|
|
Loading…
Reference in a new issue