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

Display more appropriate error on connection issues caused by SystemRoot not being set

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • None
    • Windows

      If SystemRoot is not correctly set (either to C:\WINNT or C:\Windows) the p4 client can fail to connect to the perforce server. The error message currently thrown indicates a connection problem, rather than an environment problem, and is very misleading.

      Error thrown by the client is:

      Connect to server failed; check $P4PORT.
      TCP connect to 127.0.0.1:1666 failed.
      socket: 127.0.0.1:1666: WSAEPROVIDERFAILEDINIT
      

      Which is equally unhelpful. It should display something like:

      Error running perforce client executable. Is the SystemRoot environment variable and/or plugin option set correctly?
      

          [JENKINS-15981] Display more appropriate error on connection issues caused by SystemRoot not being set

          There are no comments yet on this issue.

            Unassigned Unassigned
            rpetti Rob Petti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: