mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +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 {
|
||||
agent { label 'maven' }
|
||||
triggers { pollSCM ('* * * * *') }
|
||||
stages {
|
||||
stage('vcs') {
|
||||
steps {
|
||||
|
@ -10,8 +11,13 @@ pipeline {
|
|||
stage('build') {
|
||||
steps {
|
||||
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