back to main node

This commit is contained in:
joe 2017-08-10 13:37:51 -06:00
parent b3a4676780
commit c4d09bba52

View file

@ -5,9 +5,10 @@ echo 'Hello from Pipeline Demo'
sh "/usr/bin/mvn -B compile"
}
stage 'Test'
node('TestServer') {
node{
git url: 'https://github.com/nachofree/spring-petclinic.git'
sh "/usr/bin/mvn -B verify"
step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true])
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
}