mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Create Jenkinsfile-1
This commit is contained in:
parent
516722647a
commit
b9c9626626
1 changed files with 15 additions and 0 deletions
15
Jenkinsfile-1
Normal file
15
Jenkinsfile-1
Normal file
|
@ -0,0 +1,15 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('SonarQube analysis') {
|
||||
steps {
|
||||
script {
|
||||
scannerHome = tool 'SonarQubeScanner';
|
||||
}
|
||||
withSonarQubeEnv('My SonarQube Server') {
|
||||
sh "${scannerHome}/bin/sonar-scanner"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue