mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
change
This commit is contained in:
parent
c7bdd67dbd
commit
dc9c77b09c
1 changed files with 7 additions and 13 deletions
20
jenkinsfile
20
jenkinsfile
|
@ -1,23 +1,17 @@
|
|||
pipeline {
|
||||
agent { label 'JDK-11' }
|
||||
triggers { pollSCM('* * * * *') }
|
||||
parameters {
|
||||
string(name: 'MAVEN_GOAL', defaultValue: 'mvn package', description: 'enter maven goal')
|
||||
choice(name: 'BRANCH', choices: ['master', 'main', 'three'], description: 'select one')
|
||||
}
|
||||
agent { label 'JAVA-11' }
|
||||
stages {
|
||||
stage('clone') {
|
||||
steps {
|
||||
git url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git',
|
||||
branch: '${params.BRANCH}'
|
||||
stage('clone') {
|
||||
steps {
|
||||
git branch: 'main', url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git'
|
||||
}
|
||||
}
|
||||
stage('build') {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh '${params.MAVEN_GOAL}'
|
||||
sh 'mvn package'
|
||||
}
|
||||
}
|
||||
stage('archive results') {
|
||||
stage('results') {
|
||||
steps {
|
||||
junit '**/surefire-reports/*.xml'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue