You'd best be served by writing a plugin with a step...
Start from the code for resolveScm and you should be able to modify that to
return a list of branch names rather than the current behaviour of
returning a scm instance for a specific named branch (resolveScm will have
a delta from what you want but it should have the smallest delta)
On Mon 7 Aug 2017 at 18:49, Mark Stosberg <m...@rideamigos.com> wrote:
> Currently I've got an input() call in my Jenkinsfile that prompts users to
> select a branch name to manually deploy:
> userInput = input(
> id: 'userInput', message: 'Manual Deploy?', parameters: [
> [$class: 'ChoiceParameterDefinition', choices:
> 'develop\nmaster\nPR-124', description: 'Branch to deploy', name: 'branch',
> defaultValue: 'develop'],
> Instead of hardcoding a list branch names, how can I dynamically build
> this list based on the list of the pull requests that are already known to
> Jenkins in our multlbranch pipeline configuration?
> Jenkins is configured to automatically build new pull requests already.
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> For more options, visit https://groups.google.com/d/optout.
Sent from my phone
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.