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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ssh-agent-plugin
    • None

      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=")...

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

              Created:
              Updated: