mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
Updated Jenkinsfile
This commit is contained in:
parent
d062a74c2a
commit
ac53e27691
1 changed files with 14 additions and 3 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -1,13 +1,24 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
tools {
|
tools {
|
||||||
maven 'maven-3.5.0'
|
maven 'Maven'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
steps {
|
steps {
|
||||||
git 'https://github.com/liatrio/spring-petclinic'
|
git branch: 'plumber_dmitry', url: 'https://github.com/liatrio/spring-petclinic.git'
|
||||||
sh 'mvn clean install'
|
sh 'mvn deploy'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ('Sonar Analysis') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
scannerHome = tool 'Sonar'
|
||||||
|
}
|
||||||
|
|
||||||
|
withSonarQubeEnv('Sonar') {
|
||||||
|
sh "${scannerHome}/bin/sonar-scanner"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue