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 {
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'
}
}
}
}