mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05:50 +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 {
|
pipeline {
|
||||||
agent { label 'JAVA-11' }
|
agent { label 'JAVA-11' }
|
||||||
triggers { pollSCM( '* * * * *' ) }
|
triggers { pollSCM( '* * * * *' ) }
|
||||||
|
parameters { choice(name: 'BRANCH', choices: ['main', 'master', 'three'], description: 'Choose the branch') }
|
||||||
stages {
|
stages {
|
||||||
stage('clone') {
|
stage('clone') {
|
||||||
steps {
|
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') {
|
stage('Build') {
|
||||||
|
|
Loading…
Reference in a new issue