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

          Rob Petti created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 146783 ] New: JNJira + In-Review [ 176707 ]
          Jenkins IRC Bot made changes -
          Component/s New: p4-plugin [ 19224 ]
          Component/s Original: perforce-plugin [ 15506 ]

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

              Created:
              Updated: