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

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

    XMLWordPrintable

    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

            renescheibe René Scheibe created issue -
            renescheibe René Scheibe made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            renescheibe René Scheibe made changes -
            Assignee René Scheibe [ renescheibe ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Fixed but Unreleased [ 10203 ]
            renescheibe René Scheibe made changes -
            Remote Link This issue links to "jenkinsci/git-plugin#614 (Web Link)" [ 22335 ]
            renescheibe René Scheibe made changes -
            markewaite Mark Waite made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: