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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIdentity
(String privateKey, String passphrase, String comment, FilePath ws, Launcher launcher, TaskListener listener) Adds the provided identity to the agent.getEnv()
void
stop
(Launcher launcher, TaskListener listener) Stops the agent.
-
Constructor Details
-
ExecRemoteAgent
public ExecRemoteAgent(Launcher launcher, TaskListener listener) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
-
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:
IOException
InterruptedException
-
getEnv
-
stop
Stops the agent.- Parameters:
listener
- for logging.- Throws:
IOException
InterruptedException
-