This commit is contained in:
joe 2017-08-10 13:43:13 -06:00
parent c2a07780d5
commit acc5c43a10

View file

@ -1,12 +1,12 @@
echo 'Hello from Pipeline Demo'
stage 'Compile'
node {
git url: 'https://github.com/mitesh51/spring-petclinic.git'
git url: 'https://github.com/nachofree/spring-petclinic.git'
sh "/usr/bin/mvn -B compile"
}
stage 'Test'
node('TestServer') {
git url: 'https://github.com/mitesh51/spring-petclinic.git'
node{
git url: 'https://github.com/nachofree/spring-petclinic.git'
sh "/usr/bin/mvn -B verify"
step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true])