I have a parameterized Jenkins job which requires the input of a specific Git branch in a specific Git repo. Currently this parameter is a string parameter.
Is ther
I have a new response for this case: the easy way to solve this is having you jenkinsFile from source code.
Then you chose: this job have a git parameter
And and the Pipeline setup, unchecked the "Lightweight checkout" checkbox, this will perform a really git checkout on job workspace.
After, the parameter will be autopopulate by your git branch