mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
added BRANCH parameter
This commit is contained in:
parent
b70bd98cd5
commit
fe6c6f0f52
1 changed files with 2 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
|||
pipeline {
|
||||
agent { label 'JAVA-11' }
|
||||
triggers { pollSCM( '* * * * *' ) }
|
||||
parameters { choice(name: 'BRANCH', choices: ['main', 'master', 'three'], description: 'Choose the branch') }
|
||||
stages {
|
||||
stage('clone') {
|
||||
steps {
|
||||
git branch: 'main', url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git'
|
||||
git branch: '${params.BRANCH}', url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
|
|
Loading…
Reference in a new issue