Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25313

Deleting repository or branch from Git settings also prevents future addition

      If a user deletes the last git item from the source code management options (i.e. "Delete Repository" or "Delete Branch") the user loses the ability to add a new git repository or branch (respectively) to the options without refreshing the page; this can make editing the configuration of a project tricky and, while not blocking, is certainly a usability issue. This does seem to be a problem with the git plugin.

        1. Jenkins1.png
          Jenkins1.png
          252 kB
        2. Jenkins2.png
          Jenkins2.png
          255 kB

          [JENKINS-25313] Deleting repository or branch from Git settings also prevents future addition

          Mark Waite added a comment - - edited

          I was able to duplicate this bug. Once the last repository is deleted (Jenkins 1.565.3, git plugin 2.2.7, git client plugin 1.11.0), no button is available to add a new repository.

          Also, once the last repository is removed, the job cannot be saved. Jenkins displays a stack trace and "whoops" exception.

          Once the last branch is removed, the job can be saved. The next edit of the job will show the default branch.

          Mark Waite added a comment - - edited I was able to duplicate this bug. Once the last repository is deleted (Jenkins 1.565.3, git plugin 2.2.7, git client plugin 1.11.0), no button is available to add a new repository. Also, once the last repository is removed, the job cannot be saved. Jenkins displays a stack trace and "whoops" exception. Once the last branch is removed, the job can be saved. The next edit of the job will show the default branch.

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/e4f8cc5da51bf4d5379d26228da8657dc94bc2e7
          Log:
          [Fixed JENKINS-25313] fix null pointer exception when last repo or branch deleted

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/e4f8cc5da51bf4d5379d26228da8657dc94bc2e7 Log: [Fixed JENKINS-25313] fix null pointer exception when last repo or branch deleted

          Mark Waite added a comment -

          Planned to be included in the git plugin 2.2.8 release

          Mark Waite added a comment - Planned to be included in the git plugin 2.2.8 release

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/247f03f6a691199e0d7757ec1f17d2dded320989
          Log:
          [Fixed JENKINS-25313] fix null pointer exception when last repo or branch deleted

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/247f03f6a691199e0d7757ec1f17d2dded320989 Log: [Fixed JENKINS-25313] fix null pointer exception when last repo or branch deleted

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/4a4433295a7196e2f1ba0e9695826303f4396e47
          Log:
          [Fix JENKINS-25313] avoid null pointer if repository not defined

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/4a4433295a7196e2f1ba0e9695826303f4396e47 Log: [Fix JENKINS-25313] avoid null pointer if repository not defined

          Code changed in jenkins
          User: Mark Waite
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/d4dda4b566478e046d8c89a6fe6f51c4dfc579de
          Log:
          [Fix JENKINS-25313] avoid null pointer if repository not defined

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/d4dda4b566478e046d8c89a6fe6f51c4dfc579de Log: [Fix JENKINS-25313] avoid null pointer if repository not defined

          Mark Waite added a comment -

          Fix released in git plugin 2.3 10 Nov 2014

          Mark Waite added a comment - Fix released in git plugin 2.3 10 Nov 2014

          Mark Waite added a comment -

          Fix also included in git plugin 2.2.8 released 12 Nov 2014

          Mark Waite added a comment - Fix also included in git plugin 2.2.8 released 12 Nov 2014

            Unassigned Unassigned
            mattm401 Matthew Mauriello
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: