mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
test
This commit is contained in:
parent
71f052ffc3
commit
18cd763891
1 changed files with 44 additions and 44 deletions
|
@ -14,7 +14,7 @@ pipeline {
|
|||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh "./mvnw clean"
|
||||
sh './mvnw clean'
|
||||
sh './mvnw compile'
|
||||
}
|
||||
}
|
||||
|
@ -22,21 +22,21 @@ pipeline {
|
|||
stage('SonarQube Analysis') {
|
||||
environment {
|
||||
SCANNER_HOME = tool 'sonar-scanner'
|
||||
NODEJS_HOME =tool "nodejs"
|
||||
NODEJS_HOME = tool 'nodejs'
|
||||
PATH = "${env.NODEJS_HOME}/bin:${env.PATH}"
|
||||
def mvn = tool 'M3'
|
||||
}
|
||||
steps {
|
||||
withSonarQubeEnv('sq1') {
|
||||
sh "${mvn}/bin/mvn sonar:sonar -Dsonar.projectKey=Web -Dsonar.projectName='Web' -Dsonar.sources=src/ -Dsonar.java.binaries=target/classes/ -Dsonar.exclusions=src/test/java/****/*.java"
|
||||
sh "${mvn}/bin/mvn sonar:sonar -Dsonar.projectKey=Web -Dsonar.projectName='Web2' -Dsonar.sources=src/ -Dsonar.java.binaries=target/classes/ -Dsonar.exclusions=src/test/java/****/*.java"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build JAR') {
|
||||
steps {
|
||||
sh "./mvnw clean"
|
||||
sh "./mvnw compile"
|
||||
sh './mvnw clean'
|
||||
sh './mvnw compile'
|
||||
sh './mvnw package'
|
||||
}
|
||||
post {
|
||||
|
|
Loading…
Reference in a new issue