Scenario
While adding build script to a container, when a valid Source Control Account and a Repository URL is added with the Repository Type as Branch, the error message "Something went wrong while getting the Origin Names" appears in the wizard and the Next button is disabled.
Workaround:
Choose a different Source Control Provider and switch back to the desired provider again. If the Repository URL is empty, add the Repository URL again. Now the origin names for the branches will be listed under Repository Origin Name.