added BRANCH parameter

This commit is contained in:
Venkatesh 2022-10-06 13:26:19 +05:30
parent b70bd98cd5
commit fe6c6f0f52

View file

@ -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') {