Class ExecRemoteAgent

java.lang.Object
com.cloudbees.jenkins.plugins.sshagent.exec.ExecRemoteAgent
All Implemented Interfaces:
Serializable

public final class ExecRemoteAgent extends Object implements Serializable
Runs a native SSH agent installed on a system.
See Also:
  • Field Details

    • DEFAULT_TIMEOUT_MINUTES

      public static final int DEFAULT_TIMEOUT_MINUTES
      Default timeout, in minutes, applied to the agent commands when none is configured.
      See Also:
  • Constructor Details

    • ExecRemoteAgent

      public ExecRemoteAgent(Launcher launcher, TaskListener listener, int timeoutMinutes) throws IOException, InterruptedException
      Launches a native ssh-agent.
      Parameters:
      launcher - launches the agent process.
      listener - for logging.
      timeoutMinutes - how long, in minutes, to wait for each of the ssh-agent, ssh-add and ssh-agent -k commands before giving up.
      Throws:
      IOException
      InterruptedException
      Since:
      405
  • Method Details