fixed error

This commit is contained in:
Venkatesh 2022-10-06 11:19:03 +05:30
parent d171f80a87
commit c7bdd67dbd

View file

@ -1,13 +1,11 @@
pipeline { pipeline {
agent { label 'JDK-11' } agent { label 'JDK-11' }
stages { triggers { pollSCM('* * * * *') }
triggers { parameters {
pollSCM('* * * * *')
}
parameters {
string(name: 'MAVEN_GOAL', defaultValue: 'mvn package', description: 'enter maven goal') string(name: 'MAVEN_GOAL', defaultValue: 'mvn package', description: 'enter maven goal')
choice(name: 'BRANCH', choices: ['master', 'main', 'three'], description: 'select one') choice(name: 'BRANCH', choices: ['master', 'main', 'three'], description: 'select one')
} }
stages {
stage('clone') { stage('clone') {
steps { steps {
git url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git', git url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git',
@ -19,5 +17,10 @@ pipeline {
sh '${params.MAVEN_GOAL}' sh '${params.MAVEN_GOAL}'
} }
} }
stage('archive results') {
steps {
junit '**/surefire-reports/*.xml'
}
}
} }
} }