-
Bug
-
Resolution: Won't Do
-
Major
-
Jenkins 2.235.1
Windows 10
In a freestyle project, I need to add Git under Source code management, so that I can also add SSH credentials. I do not want the "Branches to build" section, as it leads to undesired behavior. When I click on the red X in the top right, this section gets removed. I then Apply and Save. When I reopen the project configuration, the "Branches to build" section is back and set to "*/master" by default. The bug is the inability to remove this section.
Can you explain further what is not desirable about "Branches to build"? What behavior are you trying to achieve by removing the "Branches to build" section from the job definition?
I consider it a mandatory section, not optional. I agree that since the UI allows the section to be removed, it should remain removed on future edits of the job definition. When that issue is fixed, it will probably be fixed by making the "Branches to build" not be optional.