diff --git a/Jenkinsfile b/Jenkinsfile index 7c37cbde1..a1952d10a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ -pipeliene { - agent any +pipeline { + agent 'any' triggers { pollSCM '* * * * *' } stages { stage( 'version control sysytem') { @@ -13,5 +13,12 @@ pipeliene { sh 'mvn package' } } + stage( 'post build' ) { + steps { + archiveArtifacts artifacts: '**/spring-petclinic-3.0.0.jar' + onlyIfSuccesful: true + junit testResults: '**/test-results/test/TEST-*.xml' + } + } } }