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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            Included in git plugin 4.0.0 released Nov 2, 2019

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: