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

SSH-agent not available when checking out perforce workspace


    • Similar Issues:


      I connect to perforce via ssh, and have a key prepared for this purpose. The key is loaded in as a credential but when using BOTH ssh-agent-plugin and perforce-plugin, the perforce command fails to sync the workspace with the error:

      [workspace] $ p4 -s client -i
      Caught exception communicating with perforce. TCP receive failed. read: socket: Connection reset by peer
      For Command: p4 -s client -i

      When using ssh-agent-plugin in conjunction with the build step "execute shell", a command "ssh-add -l" lists the expected credentials, and "p4 info" command is able to connect to the server, so the ssh-agent-plugin is doing the right thing in the context of the build step itself, just not the source code checkout portion!

      As a work around, I have added the -i /path/to/key/file option into my p4port. The p4port was something like "rsh:ssh -q my.perforce.host" now it is "rsh:ssh -i ~jenkins/.ssh/key_path -q my.perforce.host". This workaround is successful for now.

      I don't know if this is a problem with perforce or ssh-agent plugin.



          dayoung David Young created issue -
          rpetti Rob Petti made changes -
          Field Original Value New Value
          Assignee Rob Petti [ rpetti ]
          rpetti Rob Petti made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          rpetti Rob Petti made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 161867 ] JNJira + In-Review [ 196892 ]
          ircbot Jenkins IRC Bot made changes -
          Component/s p4-plugin [ 19224 ]
          Component/s perforce-plugin [ 15506 ]


            • Assignee:
              dayoung David Young
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: