Re: Specifing git branch via a parameter

2018-08-09 Thread Mark Waite
On Thursday, August 9, 2018 at 4:45:07 PM UTC-6, MDKF wrote: > > Hi All, > I have a pipeline that starts out like this: > > pipeline { >> >> agent any >> >> parameters { >> >> string(defaultValue: 'develop', description: 'branch', name: >>> 'Branch') >> >> } >> >> stages { >> >>

Specifing git branch via a parameter

2018-08-09 Thread MDKF
Hi All, I have a pipeline that starts out like this: pipeline { > > agent any > > parameters { > > string(defaultValue: 'develop', description: 'branch', name: >> 'Branch') > > } > > stages { > > stage('Checkout') { > >steps { > > checkout([$class: 'GitSCM', branches: [