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

Wrong result of function getLocalDir() if "local" equals empty string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • None
    • Jenkins ver. 2.190.1
      Subversion Plug-in 2.12.2

      Current implementation of getLocalDir function

      if(local==null)
          return getLastPathComponent(getURL());
      return local;
      

      When local == "" the function returns workspace, but checkout occurs in last path component of the URL relative to the workspace root.

      Conditions should be if(local==null || local == "")

            Unassigned Unassigned
            yai73w Aleksandr Iarovoi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: