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

Empty "depth" parameter for shallow cloning is not handled correctly

      Problem

      When in the ui forms of "Advanced clone behaviours" and "Advanced sub-modules behaviours" the "Shallow clone depth" field is left empty, after saving and reopening the job configuration, the field has a value of 0. This value is also persisted in the job configuration.

      Solution
      A reference (Integer) instead of primitive (int) type has to be used to support an absent value.

          [JENKINS-53050] Empty "depth" parameter for shallow cloning is not handled correctly

          Mark Waite added a comment -

          Included in git plugin 4.0.0 released Nov 2, 2019

          Mark Waite added a comment - Included in git plugin 4.0.0 released Nov 2, 2019

            Unassigned Unassigned
            renescheibe René Scheibe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: