From e9f397506473af5aaf237266b457f406213db549 Mon Sep 17 00:00:00 2001 From: n Date: Tue, 7 Mar 2023 15:24:26 +0530 Subject: [PATCH] Added the name change in pipeline --- Jenkinsfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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' + } + } } }