deploying petclinic to a local directory in jenkins

This commit is contained in:
Benjamin Stein 2017-05-10 14:54:17 -07:00
parent 061f269aab
commit ca4a384cbb

5
Jenkinsfile vendored
View file

@ -14,6 +14,11 @@ pipeline {
} }
} }
} }
stage ('Deploy to Tomcat') {
steps {
sh 'cp /target/petclinic.war /usr/share/jenkins/ref/petclinic/petclinic.war'
}
}
stage ('Sonar') { stage ('Sonar') {
steps { steps {
sh '/var/jenkins_home/sonar/bin/sonar-runner' sh '/var/jenkins_home/sonar/bin/sonar-runner'