mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 01:45:49 +00:00
added sonar
This commit is contained in:
parent
31e9210028
commit
02fe492567
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'maven' }
|
agent { label 'maven' }
|
||||||
|
triggers { pollSCM ('* * * * *') }
|
||||||
stages {
|
stages {
|
||||||
stage('vcs') {
|
stage('vcs') {
|
||||||
steps {
|
steps {
|
||||||
|
@ -10,8 +11,13 @@ pipeline {
|
||||||
stage('build') {
|
stage('build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH"'
|
sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH"'
|
||||||
sh './mvnw package'
|
sh 'mvn clean verify sonar:sonar \
|
||||||
|
-Dsonar.login=e92ab05da9b0de80f186bffebe352e5c2cfd4b4b \
|
||||||
|
-Dsonar.host.url=https://sonarcloud.io \
|
||||||
|
-Dsonar.organization=Chinthalwar Naresh \
|
||||||
|
-Dsonar.projectKey=nareshspc'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue