From c7bdd67dbddb661cb7006b17290499b1ba4871e6 Mon Sep 17 00:00:00 2001 From: Venkatesh Date: Thu, 6 Oct 2022 11:19:03 +0530 Subject: [PATCH] fixed error --- jenkinsfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index ceb738a03..2a705a91d 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,13 +1,11 @@ pipeline { agent { label 'JDK-11' } - stages { - triggers { - pollSCM('* * * * *') - } - parameters { + triggers { pollSCM('* * * * *') } + parameters { string(name: 'MAVEN_GOAL', defaultValue: 'mvn package', description: 'enter maven goal') choice(name: 'BRANCH', choices: ['master', 'main', 'three'], description: 'select one') } + stages { stage('clone') { steps { git url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git', @@ -19,5 +17,10 @@ pipeline { sh '${params.MAVEN_GOAL}' } } + stage('archive results') { + steps { + junit '**/surefire-reports/*.xml' + } + } } } \ No newline at end of file