useRepository does not seem to applied. Every time I set it, it will display No GIT repository configured in SCM configuration. Tried use https protocol, adding ^.*ubuntu16-cmake as regex as well but same message is shown.
My initial use case was to show the branches from the repository that is selected in choices but that seems not to be possible without a build. So I tried to use a fixed repository (for testing) and noticed that useRepository makes the msg to appear.
- Running without useRepository, only the branches from the default value are shown (ubuntu16-cmake) even if i choose ubuntu16-maven. Both builds finish ok since it's only checkout the repo.
- Running the jenkinsfile from SCM, only shows branches from repo where jenkinsfile is located. My use case has 3 repos (jenkinsfile only, ubuntu16-cmake and ubuntu16-maven)
- Is it possible to pass a variable to useRepository field?
Tested with jenkins (2.138) and its plugins fully updated as of 20180821.