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.
Thanks,
Mark
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/a0c15c4e-805c-4a41-bdf6-9cf42014b23e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.