Updated Jenkinsfile

This commit is contained in:
Dmitry 2017-05-08 10:51:31 -07:00
parent d062a74c2a
commit ac53e27691

17
Jenkinsfile vendored
View file

@ -1,13 +1,24 @@
pipeline {
agent any
tools {
maven 'maven-3.5.0'
maven 'Maven'
}
stages {
stage ('Build') {
steps {
git 'https://github.com/liatrio/spring-petclinic'
sh 'mvn clean install'
git branch: 'plumber_dmitry', url: 'https://github.com/liatrio/spring-petclinic.git'
sh 'mvn deploy'
}
}
stage ('Sonar Analysis') {
steps {
script {
scannerHome = tool 'Sonar'
}
withSonarQubeEnv('Sonar') {
sh "${scannerHome}/bin/sonar-scanner"
}
}
}
}