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.

          [JENKINS-66536] Cannot remove "Branches to build" option

          Martin created issue -
          Mark Waite made changes -
          Comment [ 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. ]
          Mark Waite made changes -
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            martorad Martin
            martorad Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: