Class ExecRemoteAgent
java.lang.Object
com.cloudbees.jenkins.plugins.sshagent.exec.ExecRemoteAgent
- All Implemented Interfaces:
Serializable
Runs a native SSH agent installed on a system.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIdentity(String privateKey, String passphrase, String comment, FilePath ws, Launcher launcher, TaskListener listener) Adds the provided identity to the agent.getEnv()voidstop(Launcher launcher, TaskListener listener) Stops the agent.
-
Constructor Details
-
ExecRemoteAgent
public ExecRemoteAgent(Launcher launcher, TaskListener listener) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
-
Method Details
-
addIdentity
public void addIdentity(String privateKey, String passphrase, String comment, FilePath ws, Launcher launcher, TaskListener listener) throws IOException, InterruptedException Adds the provided identity to the agent.- Parameters:
privateKey- the private key.passphrase- the passphrase ornull.comment- the comment to give to the key.listener- for logging.- Throws:
IOExceptionInterruptedException
-
getEnv
-
stop
Stops the agent.- Parameters:
listener- for logging.- Throws:
IOExceptionInterruptedException
-