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

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

    XMLWordPrintable

Details

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: