com.cloudbees.jenkins.plugins.sshagent
Class SSHAgentBuildWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
hudson.tasks.BuildWrapper
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>
public class SSHAgentBuildWrapper
- extends hudson.tasks.BuildWrapper
A build wrapper that provides an SSH agent using supplied credentials
| Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper |
hudson.tasks.BuildWrapper.Environment |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Method Summary |
java.lang.String |
getUser()
Gets the SSHUser.getId() of the credentials to use. |
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
|
| Methods inherited from class hudson.tasks.BuildWrapper |
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, setUp |
| Methods inherited from class hudson.model.AbstractDescribableImpl |
getDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSHAgentBuildWrapper
@DataBoundConstructor
public SSHAgentBuildWrapper(java.lang.String user)
- Constructs a new instance.
- Parameters:
user - the SSHUser.getId() of the credentials to use.
getUser
public java.lang.String getUser()
- Gets the
SSHUser.getId() of the credentials to use.
- Returns:
- the
SSHUser.getId() of the credentials to use.
setUp
public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.io.IOException,
java.lang.InterruptedException
-
- Overrides:
setUp in class hudson.tasks.BuildWrapper
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2004-2012. All Rights Reserved.