mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
test2
This commit is contained in:
parent
1f1d07e3a8
commit
5a4b4ce51f
1 changed files with 5 additions and 1 deletions
|
@ -4,16 +4,20 @@ node {
|
||||||
}
|
}
|
||||||
stage("build"){
|
stage("build"){
|
||||||
sh "./mvnw compile"
|
sh "./mvnw compile"
|
||||||
|
sh 'curl -sL https://deb.nodesource.com/setup_14.x | bash -'
|
||||||
|
sh 'apt-get install -y nodejs'
|
||||||
|
|
||||||
}
|
}
|
||||||
stage('SonarQube Analysis') {
|
stage('SonarQube Analysis') {
|
||||||
environment{
|
environment{
|
||||||
SCANNER_HOME = tool 'sonar-scanner'
|
SCANNER_HOME = tool 'sonar-scanner'
|
||||||
|
NODEJS_HOME = tool 'nodejs'
|
||||||
|
PATH = "/path/to/nodejs/bin:$PATH"
|
||||||
|
|
||||||
}
|
}
|
||||||
def mvn = tool 'M3';
|
def mvn = tool 'M3';
|
||||||
withSonarQubeEnv("sq1") {
|
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,*.js,*.css,*.html,*.html.js,**/*.html.js,**/*.css,target/classes/"
|
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue