Class SSHAgentBuildWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildWrapper>
hudson.tasks.BuildWrapper
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper
- All Implemented Interfaces:
 ExtensionPoint,Describable<BuildWrapper>
A build wrapper that provides an SSH agent using supplied credentials
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA value object to make it possible to pass back multiple credentials via the UI.static classOur descriptor.Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.EnvironmentNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson - 
Constructor Summary
ConstructorsConstructorDescriptionSSHAgentBuildWrapper(SSHAgentBuildWrapper.CredentialHolder[] credentialHolders, boolean ignoreMissing) Constructs a new instance.SSHAgentBuildWrapper(String user) Deprecated.SSHAgentBuildWrapper(List<String> credentialIds, boolean ignoreMissing) Constructs a new instance. - 
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdescription(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials c) Helper method that returns a safe description of aStandardUsernameCredentials.Returns the value objects used to hold the credential ids.Gets theIdCredentials.getId()s of the credentials to use.getUser()Deprecated.booleanWhentruethen any missing credentials will be ignored.voidpreCheckout(AbstractBuild build, Launcher launcher, BuildListener listener) setUp(AbstractBuild build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, setUpMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor 
- 
Constructor Details
- 
SSHAgentBuildWrapper
Deprecated.Constructs a new instance.- Parameters:
 user- theIdCredentials.getId()of the credentials to use.
 - 
SSHAgentBuildWrapper
@DataBoundConstructor public SSHAgentBuildWrapper(SSHAgentBuildWrapper.CredentialHolder[] credentialHolders, boolean ignoreMissing) Constructs a new instance.- Parameters:
 credentialHolders- theSSHAgentBuildWrapper.CredentialHolders of the credentials to use.ignoreMissing-truemissing credentials will not cause a build failure.- Since:
 - 1.5
 
 - 
SSHAgentBuildWrapper
Constructs a new instance.- Parameters:
 credentialIds- theIdCredentials.getId()s of the credentials to use.ignoreMissing-truemissing credentials will not cause a build failure.- Since:
 - 1.5
 
 
 - 
 - 
Method Details
- 
getUser
Deprecated.Gets theIdCredentials.getId()of the credentials to use.- Returns:
 - the 
IdCredentials.getId()of the credentials to use. 
 - 
getCredentialIds
Gets theIdCredentials.getId()s of the credentials to use.- Returns:
 - the 
IdCredentials.getId()s of the credentials to use. - Since:
 - 1.5
 
 - 
isIgnoreMissing
public boolean isIgnoreMissing()Whentruethen any missing credentials will be ignored. Whenfalsethen the build will be failed if any of the required credentials cannot be resolved.- Returns:
 truemissing credentials will not cause a build failure.
 - 
getCredentialHolders
Returns the value objects used to hold the credential ids.- Returns:
 - the value objects used to hold the credential ids.
 - Since:
 - 1.5
 
 - 
preCheckout
public void preCheckout(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException - Overrides:
 preCheckoutin classBuildWrapper- Throws:
 IOExceptionInterruptedException
 - 
setUp
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException - Overrides:
 setUpin classBuildWrapper- Throws:
 IOExceptionInterruptedException
 - 
description
@NonNull public static String description(@NonNull com.cloudbees.plugins.credentials.common.StandardUsernameCredentials c) Helper method that returns a safe description of aStandardUsernameCredentials.- Parameters:
 c- the credentials.- Returns:
 - the description.
 
 
 - 
 
SSHAgentBuildWrapper(java.util.List,boolean)