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

Pre-existing ssh-agent is killed by ssh-agent-plugin

    Details

    • Similar Issues:

      Description

      ExecRemoteAgentFactory.isSupported() calls ssh-agent -k. If SSH_AGENT_PID is set and pointing to a running ssh-agent, the isSupported test will terminate it.

      In ExecRemoteAgentFactory.java#L59 , it could be fixed by tweaking the environment with envs()

      launcher.launch().cmds("ssh-agent", "-k").envs("SSH_AGENT_PID=")...

        Attachments

          Activity

          Show
          xverges Xavier Vergés added a comment - https://github.com/jenkinsci/ssh-agent-plugin/pull/20
          Hide
          xverges Xavier Vergés added a comment -

          Hi Stephen Connolly. I see that you are the maintainer of the SSH Agent Plugin. Can you take a look at my very simple PR at https://github.com/jenkinsci/ssh-agent-plugin/pull/20/files ?

          Thanks!

          Show
          xverges Xavier Vergés added a comment - Hi Stephen Connolly . I see that you are the maintainer of the SSH Agent Plugin. Can you take a look at my very simple PR at https://github.com/jenkinsci/ssh-agent-plugin/pull/20/files ? Thanks!

            People

            • Assignee:
              Unassigned
              Reporter:
              xverges Xavier Vergés
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: