Issue
I want to know if it's possible to list from a dropdown the GIT branches that are inside my repo dynamically on Jenkins, what I mean by this is if I currently have 3 branches (master/stage/dev) I want them to show on the dropdown when executing the job, but if tomorrow I add a new one, I want that new one to show without me to go and add the new option.
Thanks in advance!
Solution
did you check - https://wiki.jenkins.io/display/JENKINS/Git+Parameter+Plugin ?
you just need to add a git parameter , and a new dropdown will appear.
Answered By - Mor Lajb
Answer Checked By - David Marino (JavaFixing Volunteer)