mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +00:00
fixed error
This commit is contained in:
parent
d171f80a87
commit
c7bdd67dbd
1 changed files with 8 additions and 5 deletions
13
jenkinsfile
13
jenkinsfile
|
@ -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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue